Manage data in Docker

13 Apr 2019

Default

all files created inside a container are stored on a writable container layer, therefor:

options to store files

types of mounts and where they live on the Docker host

Usage

Volume:

Create and manage volumes:

Start a container with a volume:
f you start a container with a volume that does not yet exist, Docker creates the volume for you. The following example mounts the volume myvol2 into /app/ in the containe

docker run -d \
  --name devtest \
  -v myvol2:/app \
  nginx:latest

bind mounts