Skip to content

Doc update: use :ro modifier on volume mount example #5

Description

@cmanley

The container does not need write access to the host's repositories, so for safety sake, it's better to force read-only access by appending the :ro modifier to the -v command line option.

I.e. change this:
docker run --rm=true -p 8888:80 -v /path/repo:/repos gitlist
to this:
docker run --rm=true -p 8888:80 -v /path/repo:/repos:ro gitlist

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions