docker run --read-only myimage

Category: Docker

docker run --read-only myimage

Mount the container's root filesystem as read-only

Makes the container's root filesystem read-only — files inside can't be changed. Useful for security.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.