https://github.com/blwsh/stackoverflow-59031249
Stack overflow question
https://github.com/blwsh/stackoverflow-59031249
docker docker-compose question
Last synced: 2 months ago
JSON representation
Stack overflow question
- Host: GitHub
- URL: https://github.com/blwsh/stackoverflow-59031249
- Owner: blwsh
- Created: 2019-11-25T12:42:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T12:48:45.000Z (over 6 years ago)
- Last Synced: 2025-06-13T19:03:36.225Z (about 1 year ago)
- Topics: docker, docker-compose, question
- Language: Dockerfile
- Homepage: https://stackoverflow.com/questions/59031249/docker-compose-only-mount-files-that-exist-on-host-to-container
- Size: 1000 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
````shell script
docker-compose up -d
docker-compose exec example ls -al
docker-compose exec cat file..txt
````
Desired container file system:
```shell script
File - - - - - Contents
|- /src
|-- file.a.txt (host)
|-- file.b.txt (host)
|-- file.c.txt (container)
```