From b273c447e0f0b124d5f81ff60033a4894e2acec8 Mon Sep 17 00:00:00 2001 From: Satnam Singh Date: Sat, 15 Nov 2014 22:40:48 -0800 Subject: [PATCH] Consistently use sudo docker Signed-off-by: Satnam Singh --- docs/sources/articles/registry_mirror.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/sources/articles/registry_mirror.md b/docs/sources/articles/registry_mirror.md index 6cb2b958c3..5d5378e234 100644 --- a/docs/sources/articles/registry_mirror.md +++ b/docs/sources/articles/registry_mirror.md @@ -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:// -d + sudo docker --registry-mirror=http:// -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 [...]