docker run -v mydata:/data:ro myimage

Category: Docker

docker run -v mydata:/data:ro myimage

Mount a volume as read-only inside the container

Mounts a volume as read-only. The container can read data but cannot modify it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.