Docker now recommends switching to using --mount.
Mounting a volume multiple times is also explained in detail in the current Docker documentation.
From: https://docs.docker.com/storage/bind-mounts/
$ docker run -d \ -it \ --name devtest \ --mount type=bind,source="$(pwd)"/target,target=/app \ --mount type=bind,source="$(pwd)"/target,target=/app2,readonly,bind-propagation=rslave \ nginx:latest
The original old answer should still work; just trying to save the answer according to the current best known method.
MadJangi Jul 19 '19 at 16:26 2019-07-19 16:26
source share