Docker Community Forums

Share and learn in the Docker community.

Cannot mount single file to container using docker-compose

(Kiangj) #1

Expected behavior

Using the following configuration in docker-compose.yaml will make textfile.txt on host machine show up in the container at /tmp/textfile.txt
- ./src/textfile.txt:/tmp/textfile.txt

Actual behavior

Container has an empty directory at /tmp/textfile.txt

(Dave) #2

Are you get solution? recently related posts any solution of that problem.

(Marfillaster) #3

Made an issue of this