New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
You can either mount a local directory or let docker create a new volume, which is like a directory but managed by docker.
This will mount the
/local/path
at/container/path
.This will create a new volume named
foo
and mount it at/container/path
.All of this is documented at https://docs.docker.com/engine/tutorials/dockervolumes/
If you're using the offical
ghost
image, the correct path to mount in the container would be/var/lib/ghost
.