mirror of
https://github.com/docker/cli.git
synced 2026-01-22 03:22:01 +03:00
Merge pull request #24566 from meichuntao/master
fix the docker run --readonly example. rename '/icanwrite here' to '/… Upstream-commit: 489adc96b84ed55bfef0abcb654991620be5510f Component: engine
This commit is contained in:
@@ -224,7 +224,7 @@ will automatically create this directory on the host for you. In the
|
||||
example above, Docker will create the `/doesnt/exist`
|
||||
folder before starting your container.
|
||||
|
||||
$ docker run --read-only -v /icanwrite busybox touch /icanwrite here
|
||||
$ docker run --read-only -v /icanwrite busybox touch /icanwrite/here
|
||||
|
||||
Volumes can be used in combination with `--read-only` to control where
|
||||
a container writes files. The `--read-only` flag mounts the container's root
|
||||
|
||||
Reference in New Issue
Block a user