Docker sq
Docker Fundamentals - Persisting Data
  •  

Mounting Data

PRO
Outline

Mounting Data

Remember: use $ docker container run --volume [local directory] : [container directory] to mount local files to your container!

This does not create a volume, but a bind mount which can be declared as read-only with :ro. This is good practice when using someone else's image!

 

I finished! On to the next chapter