Documenting compose-inside-docker gotcha#8538
Closed
reinout wants to merge 2 commits into
Closed
Conversation
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 :-)
|
Deploy preview for docsdocker ready! Built with commit a345ccc |
1 similar comment
|
Deploy preview for docsdocker ready! Built with commit a345ccc |
"when" seems better than "as". With "as" the comment could be misunderstood when read out-of-context.
Contributor
|
@ulyssessouza can you please have a look? Thanks! |
Contributor
|
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. |
|
Good initiative, that caught me off guard too, I spent hours wrestling with this very issue... |
Member
|
Closing this PR as this use case isn't supported in Compose V2. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
This is a documentation fix for docker/compose#6506
When you use the dockerized docker-compose, a
~in yourdocker-compose.ymldoesn't expand to what you expect (/home/myuser), but to/rootas that is the home dir inside the docker it is running in :-)Related issues
docker/compose#6506