Consistently use sudo docker

Signed-off-by: Satnam Singh <satnam@raintown.org>
This commit is contained in:
Satnam Singh 2014-11-15 22:40:48 -08:00
parent 61e4b4e1d0
commit b273c447e0
1 changed files with 5 additions and 5 deletions

View File

@ -29,11 +29,11 @@ There are two steps to set up and use a local registry mirror.
You will need to pass the `--registry-mirror` option to your Docker daemon on
startup:
docker --registry-mirror=http://<my-docker-mirror-host> -d
sudo docker --registry-mirror=http://<my-docker-mirror-host> -d
For example, if your mirror is serving on `http://10.0.0.2:5000`, you would run:
docker --registry-mirror=http://10.0.0.2:5000 -d
sudo docker --registry-mirror=http://10.0.0.2:5000 -d
**NOTE:**
Depending on your local host setup, you may be able to add the
@ -47,7 +47,7 @@ You will need to start a local registry mirror service. The
functionality. For example, to run a local registry mirror that serves on
port `5000` and mirrors the content at `registry-1.docker.io`:
docker run -p 5000:5000 \
sudo docker run -p 5000:5000 \
-e STANDALONE=false \
-e MIRROR_SOURCE=https://registry-1.docker.io \
-e MIRROR_SOURCE_INDEX=https://index.docker.io registry
@ -57,7 +57,7 @@ port `5000` and mirrors the content at `registry-1.docker.io`:
With your mirror running, pull an image that you haven't pulled before (using
`time` to time it):
$ time docker pull node:latest
$ time sudo docker pull node:latest
Pulling repository node
[...]
@ -71,7 +71,7 @@ Now, remove the image from your local machine:
Finally, re-pull the image:
$ time docker pull node:latest
$ time sudo docker pull node:latest
Pulling repository node
[...]