What does the :ro in docker command to run nginx do

Viewed 670

From the nginx docker page, to run nginx image, we need to:

docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d nginx

I understand the option -v /some/content:/usr/share/nginx/html:ro mounts the directory /some/content on host to container's /usr/share/nginx/html directory.

But what does :ro at the end do ?

1 Answers

It means read only volume. So the container will not be able to modify its contents.

Related