Browse code

Consistently use sudo docker

Signed-off-by: Satnam Singh <satnam@raintown.org>

Satnam Singh authored on 2014/11/16 15:40:48
Showing 1 changed files
... ...
@@ -29,11 +29,11 @@ There are two steps to set up and use a local registry mirror.
29 29
 You will need to pass the `--registry-mirror` option to your Docker daemon on
30 30
 startup:
31 31
 
32
-    docker --registry-mirror=http://<my-docker-mirror-host> -d
32
+    sudo docker --registry-mirror=http://<my-docker-mirror-host> -d
33 33
 
34 34
 For example, if your mirror is serving on `http://10.0.0.2:5000`, you would run:
35 35
 
36
-    docker --registry-mirror=http://10.0.0.2:5000 -d
36
+    sudo docker --registry-mirror=http://10.0.0.2:5000 -d
37 37
 
38 38
 **NOTE:**
39 39
 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
47 47
 functionality. For example, to run a local registry mirror that serves on
48 48
 port `5000` and mirrors the content at `registry-1.docker.io`:
49 49
 
50
-    docker run -p 5000:5000 \
50
+    sudo docker run -p 5000:5000 \
51 51
         -e STANDALONE=false \
52 52
         -e MIRROR_SOURCE=https://registry-1.docker.io \
53 53
         -e MIRROR_SOURCE_INDEX=https://index.docker.io registry
... ...
@@ -57,7 +57,7 @@ port `5000` and mirrors the content at `registry-1.docker.io`:
57 57
 With your mirror running, pull an image that you haven't pulled before (using
58 58
 `time` to time it):
59 59
 
60
-    $ time docker pull node:latest
60
+    $ time sudo docker pull node:latest
61 61
     Pulling repository node
62 62
     [...]
63 63
     
... ...
@@ -71,7 +71,7 @@ Now, remove the image from your local machine:
71 71
 
72 72
 Finally, re-pull the image:
73 73
 
74
-    $ time docker pull node:latest
74
+    $ time sudo docker pull node:latest
75 75
     Pulling repository node
76 76
     [...]
77 77