Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blwsh/stackoverflow-59031249
Stack overflow question
https://github.com/blwsh/stackoverflow-59031249
docker docker-compose question
Last synced: about 1 month ago
JSON representation
Stack overflow question
- Host: GitHub
- URL: https://github.com/blwsh/stackoverflow-59031249
- Owner: blwsh
- Created: 2019-11-25T12:42:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T12:48:45.000Z (about 5 years ago)
- Last Synced: 2024-10-30T05:25:24.234Z (2 months 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)
```