Docker Community Forums

Share and learn in the Docker community.

Docker-compose wait until all entrypoint script finishes

Hi,

I developing HA - Yarn Hadoop cluster on Docker containers. I made an script in entrypoint inside docker-compose.

I gave below command to start my docker containers.

docker-compse up -d

But, docker-compose telling “done” once and finishes before entrypoint script completes.

How to make docker-compose waint until the script mentioned in entrypoint finishes.

[user1@Server]$ docker-compose up -d
Creating network “hadoopcluster_default” with the default driver
Creating volume “hadoop_cluster_master_1_hdfs” with default driver
Creating volume “hadoop_cluster_master_2_hdfs” with default driver
Creating volume “hadoop_cluster_worker_1_hdfs” with default driver
Creating volume “hadoop_cluster_worker_2_hdfs” with default driver
Creating volume “hadoop_cluster_worker_3_hdfs” with default driver
Creating volume “hadoop_cluster_worker_4_hdfs” with default driver
Creating volume “hadoop_cluster_cgroup” with default driver
Creating standby-master … done
Creating worker-2 … done
Creating worker-1 … done
Creating worker-4 … done
Creating worker-3 … done
Creating master … done

Init Docker as usual.
Set RT megaflags on /etc dickdir
Restart OS, check if Docker is up & accespting VRAss
Edit Docker.conf

{Daemon waiting time}
WaitTime =- 200

Save and restart Docker