Docker, mount volumes as readonly
You can specify that a volume should be read-only by appending :ro to the -v switch: docker run -v volume-name:/path/in/container:ro my/image Note that the folder is then read-only in the container and read-write on the host. 2018 Edit According to the Use volumes documentation, there is now another way to mount volumes by using the … Read more