mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #9189 from satnam6502/docfix
Consistently use sudo docker
This commit is contained in:
commit
660eadae3d
1 changed files with 5 additions and 5 deletions
|
@ -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
|
You will need to pass the `--registry-mirror` option to your Docker daemon on
|
||||||
startup:
|
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:
|
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:**
|
**NOTE:**
|
||||||
Depending on your local host setup, you may be able to add the
|
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
|
functionality. For example, to run a local registry mirror that serves on
|
||||||
port `5000` and mirrors the content at `registry-1.docker.io`:
|
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 STANDALONE=false \
|
||||||
-e MIRROR_SOURCE=https://registry-1.docker.io \
|
-e MIRROR_SOURCE=https://registry-1.docker.io \
|
||||||
-e MIRROR_SOURCE_INDEX=https://index.docker.io registry
|
-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
|
With your mirror running, pull an image that you haven't pulled before (using
|
||||||
`time` to time it):
|
`time` to time it):
|
||||||
|
|
||||||
$ time docker pull node:latest
|
$ time sudo docker pull node:latest
|
||||||
Pulling repository node
|
Pulling repository node
|
||||||
[...]
|
[...]
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ Now, remove the image from your local machine:
|
||||||
|
|
||||||
Finally, re-pull the image:
|
Finally, re-pull the image:
|
||||||
|
|
||||||
$ time docker pull node:latest
|
$ time sudo docker pull node:latest
|
||||||
Pulling repository node
|
Pulling repository node
|
||||||
[...]
|
[...]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue