-
Notifications
You must be signed in to change notification settings - Fork 152
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
Dockerfile-created files removed from working directory #302
Comments
The issue at play here is that the volume is mounted into the Mutagen sidecar container before it's mounted into the The same issue can be seen with multiple services using Docker Compose (at least w/ V2 where startup order is less predictable):
Depending on the startup order, sometimes I'm not sure how often the volume-inheriting-image-contents is relied upon in the wild, at least when it comes to Compose. If it's something really common, perhaps we can come up with a workaround, but I don't have one at the moment. The best thing would probably just be to document this behavior. Would that be sufficient? |
Thanks for this thorough explanation, Jacob. I agree that documenting the behavior would be just the thing. |
I've added a note on this issue to the Mutagen Compose documentation, so I think we can close this out. |
mutagen version: 0.13.0-beta1
platform: macOS 10.15.7 x86-64
If files or directories are produced by a Dockerfile and there are files for Mutagen to sync, then the Dockerfile-produced directories and files disappear.
To reproduce
Dockerfile
docker-compose.yml
mutagen-synced-me
mutagen compose up --build --detach
mutagen compose exec issue sh
ls -la
Notice that
dockerfile-made-me
is missing.To control
Repeat the above steps, switching the order of 3 and 4. Notice that
dockerfile-made-me
is present alongsidemutagen-synced-me
.The text was updated successfully, but these errors were encountered: