Skip to content

One of my first attempts at learning docker, here I was practicing volumes and trying to read a file from a container.

Notifications You must be signed in to change notification settings

Robert076/read-file-from-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker build . -t <name>

docker run --rm -it <name>

Also you can directly change the file in your current directory and using volumes the docker container will take your updated file (it maps host:container, the host part is the path to your file and the second one is the path on the container)

docker run -v $(pwd)/data.txt:/data/data.txt pyscript

--rm removes intermediate containers

-it makes the running process interactive

About

One of my first attempts at learning docker, here I was practicing volumes and trying to read a file from a container.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published