Volumes vs bind mounts
Select an icon to see what it is.
Step 5 of 6
:ro makes the mount read-only
With :ro the kernel mounts the directory read-only inside the container. A write from the container fails with a read-only file system error. The host can still change the files, and the container sees the changes.
$ docker exec web touch /usr/share/nginx/html/xResult of the write
touch: cannot touch '/usr/share/nginx/html/x': Read-only file system