Skip to content

Documenting compose-inside-docker gotcha#8538

Closed
reinout wants to merge 2 commits into
docker:masterfrom
reinout:patch-1
Closed

Documenting compose-inside-docker gotcha#8538
reinout wants to merge 2 commits into
docker:masterfrom
reinout:patch-1

Conversation

@reinout
Copy link
Copy Markdown

@reinout reinout commented Mar 28, 2019

Proposed changes

This is a documentation fix for docker/compose#6506

When you use the dockerized docker-compose, a ~ in your docker-compose.yml doesn't expand to what you expect (/home/myuser), but to /root as that is the home dir inside the docker it is running in :-)

Related issues

docker/compose#6506

This is a documentation fix for docker/compose#6506

When you use the dockerized docker-compose, a `~` in your `docker-compose.yml` doesn't expand to what you expect (`/home/myuser`), but to `/root` as that is the home dir inside the docker it is running in :-)
@GordonTheTurtle
Copy link
Copy Markdown

Deploy preview for docsdocker ready!

Built with commit a345ccc

https://deploy-preview-8538--docsdocker.netlify.com

1 similar comment
@GordonTheTurtle
Copy link
Copy Markdown

Deploy preview for docsdocker ready!

Built with commit a345ccc

https://deploy-preview-8538--docsdocker.netlify.com

"when" seems better than "as".
With "as" the comment could be misunderstood when read out-of-context.
@bermudezmt bermudezmt requested a review from ulyssessouza April 1, 2019 18:38
@bermudezmt
Copy link
Copy Markdown
Contributor

@ulyssessouza can you please have a look? Thanks!

@bermudezmt bermudezmt added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Apr 1, 2019
@gqqnbig
Copy link
Copy Markdown
Contributor

gqqnbig commented Aug 19, 2021

a345ccc reads better for me. "as" states a fact that docker-compose runs inside a container. "when" implies a possibility that sometimes docker-compose runs outside a container.

@GitHunter0
Copy link
Copy Markdown

Good initiative, that caught me off guard too, I spent hours wrestling with this very issue...

@usha-mandya
Copy link
Copy Markdown
Member

Closing this PR as this use case isn't supported in Compose V2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compose Relates to docker-compose.yml spec or docker-compose binary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants