vimwiki

Docker storage

Four types:

Writable layer

File system of the container.

Tmpfs

Fast memory, relying on the host ram. Useful for operation that need speed or for sensitive data.

Bind mounts

Map host folder to a container folder.

docker run --name <name> --mount type=bind,source="$(pwd)"/<hostDir>,target=<containerDirPath>
#or
docker run --name <name> -v "$(pwd)"/<hostDir>:<containerDirPath>

Volumes

Similar to bind mounts, but it’s managed by docker. Meaning can be created if needed by the container.

Volume