The /home volume for the three docker containers (frontend, master, and node) is shared. Additionally, each container populates the contents of /home with ssh keys at startup and also creates bash initialization files. This creates a race condition when the three containers attempt to write to the shared volume, causing random failures of docker compose to bring up the containers.
The compose file and/or containers should be modified such that only one container is populating /home with content at startup time.
The
/home
volume for the three docker containers (frontend
,master
, andnode
) is shared. Additionally, each container populates the contents of/home
with ssh keys at startup and also creates bash initialization files. This creates a race condition when the three containers attempt to write to the shared volume, causing random failures of docker compose to bring up the containers.The compose file and/or containers should be modified such that only one container is populating
/home
with content at startup time.