turtlebot3_behavior_demos
turtlebot3_behavior_demos copied to clipboard
docker compose build isn't working
I am getting these errors messages after doing a docker compose build.
BLIRKSPR MINGW64 ~/dockerimage/turtlebot3_behavior_demos/docker (main) $ docker compose up overlay Container turtlebot3_behavior_demos-overlay-1 Creating Container turtlebot3_behavior_demos-overlay-1 Created Attaching to turtlebot3_behavior_demos-overlay-1 turtlebot3_behavior_demos-overlay-1 | exec /entrypoint.sh: no such file or directory turtlebot3_behavior_demos-overlay-1 exited with code 1
BLIRKSPR MINGW64 ~/dockerimage/turtlebot3_behavior_demos/docker (main) $ docker compose up sim Container turtlebot3_behavior_demos-sim-1 Creating Container turtlebot3_behavior_demos-sim-1 Created Attaching to turtlebot3_behavior_demos-sim-1 turtlebot3_behavior_demos-sim-1 | exec /entrypoint.sh: no such file or directory turtlebot3_behavior_demos-sim-1 exited with code 1
BLIRKSPR MINGW64 ~/dockerimage/turtlebot3_behavior_demos/docker (main) $ docker compose up dev Container turtlebot3_behavior_demos-dev-1 Creating Container turtlebot3_behavior_demos-dev-1 Created Attaching to turtlebot3_behavior_demos-dev-1 turtlebot3_behavior_demos-dev-1 | exec /entrypoint.sh: no such file or directory turtlebot3_behavior_demos-dev-1 exited with code 1
It looks like everything built okay when the docker compose build command was issued.
Output file attached. dockerbuildissue.txt
I notice you are running the commands from the turtlebot3_behavior_demos/docker
folder.
Can you do it from one folder up? So from ~/dockerimage/turtlebot3_behavior_demos
?
I rebuilt the image and ran from one folder up as you suggested. No change.
BLIRKSPR MINGW64 ~/dockerimage/turtlebot3_behavior_demos (main) $ docker compose up dev Container turtlebot3_behavior_demos-dev-1 Creating Container turtlebot3_behavior_demos-dev-1 Created Attaching to turtlebot3_behavior_demos-dev-1 turtlebot3_behavior_demos-dev-1 | exec /entrypoint.sh: no such file or directory turtlebot3_behavior_demos-dev-1 exited with code 1
BLIRKSPR MINGW64 ~/dockerimage/turtlebot3_behavior_demos (main) $ docker compose up sim Container turtlebot3_behavior_demos-sim-1 Creating Container turtlebot3_behavior_demos-sim-1 Created Attaching to turtlebot3_behavior_demos-sim-1 turtlebot3_behavior_demos-sim-1 | exec /entrypoint.sh: no such file or directory turtlebot3_behavior_demos-sim-1 exited with code 1
MINGW64 ~/dockerimage/turtlebot3_behavior_demos (main) $ docker compose up overlay Container turtlebot3_behavior_demos-overlay-1 Creating Container turtlebot3_behavior_demos-overlay-1 Created Attaching to turtlebot3_behavior_demos-overlay-1 turtlebot3_behavior_demos-overlay-1 | exec /entrypoint.sh: no such file or directory turtlebot3_behavior_demos-overlay-1 exited with code 1
Did you also rebuild it from one folder up? I just grabbed the latest version of this repo and it ran fine...
I did rebuild it from one folder up.
Here is a list of the images after docker compose build:
$ docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
turtlebot3_behavior dev ecce2df38351 30 seconds ago 5.15GB
Note: I am building this on Windows 10 with Docker Desktop running Version 4.21.1 (114176)
which has Compose v2.19.1 in it.
It fails to start using either the command line or from with the Docker Desktop GUI.
AHA! The Windows host might do it... I wonder if it's something related to this: https://stackoverflow.com/questions/38905135/why-wont-my-docker-entrypoint-sh-execute
Maybe the docker/entrypoint.sh
file I put up on GitHub doesn't play nicely with Windows hosts machines at build time. Might be worth trying to see if you can locally make updates to that file pre-building?