Docker sq
Docker Fundamentals - Persisting Data
  •  

Mounting Data

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

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