Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker compose build isn't working #36

Open
vipermn opened this issue Jul 21, 2023 · 5 comments
Open

docker compose build isn't working #36

vipermn opened this issue Jul 21, 2023 · 5 comments

Comments

@vipermn
Copy link

vipermn commented Jul 21, 2023

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

@sea-bass
Copy link
Owner

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?

@vipermn
Copy link
Author

vipermn commented Jul 21, 2023

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

@sea-bass
Copy link
Owner

Did you also rebuild it from one folder up? I just grabbed the latest version of this repo and it ran fine...

@vipermn
Copy link
Author

vipermn commented Jul 21, 2023

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
661f11619881 47 seconds ago 5.07GB
turtlebot3_behavior overlay a453b643c750 47 seconds ago 5.07GB
bffe6fc33c93 47 seconds ago 5.07GB
f6e44abcfdc0 47 seconds ago 5.07GB
ed6377f59c45 47 seconds ago 5.07GB
turtlebot3_behavior base 7e4c04859872 3 minutes ago 4.72GB

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.

@sea-bass
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants