Browse code

Add a note that remote and Boot2Docker users should not type sudo

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)

Sven Dowideit authored on 2014/12/29 17:19:42
Showing 8 changed files
... ...
@@ -56,4 +56,6 @@ RUN VERSION=$(cat VERSION) \
56 56
 
57 57
 EXPOSE 8000
58 58
 
59
+RUN cd sources && rgrep --files-with-matches '{{ include ".*" }}' | xargs sed -i~ 's/{{ include "\(.*\)" }}/cat include\/\1/ge'
60
+
59 61
 CMD ["mkdocs", "serve"]
... ...
@@ -37,7 +37,7 @@ image cache.
37 37
 > characters of the full image ID - which can be found using
38 38
 > `docker inspect` or `docker images --no-trunc=true`
39 39
 
40
-**If you're using OS X** then you shouldn't use `sudo`.
40
+{{ include "no-remote-sudo.md" }}
41 41
 
42 42
 ## Running an interactive shell
43 43
 
... ...
@@ -26,6 +26,8 @@ Windows*](../installation/windows/#windows) installation guides. The small
26 26
 Linux distribution boot2docker can be run inside virtual machines on these
27 27
 two operating systems.
28 28
 
29
+{{ include "no-remote-sudo.md" }}
30
+
29 31
 ### How do containers compare to virtual machines?
30 32
 
31 33
 They are complementary. VMs are best used to allocate chunks of
32 34
new file mode 100644
... ...
@@ -0,0 +1,3 @@
0
+> **Note:** if you are using a remote Docker daemon, such as Boot2Docker, 
1
+> then _do not_ type the `sudo` before the `docker` commands shown in the
2
+> documentation's examples.
... ...
@@ -72,6 +72,8 @@ complete. You can test it by following the directions below.
72 72
 
73 73
 ## Running Docker
74 74
 
75
+{{ include "no-remote-sudo.md" }}
76
+
75 77
 From your terminal, you can test that Docker is running with our small `hello-world`
76 78
 example image:
77 79
 Start the vm (`boot2docker start`) and then run:
... ...
@@ -49,6 +49,8 @@ and the Boot2Docker management tool.
49 49
 
50 50
 ## Running Docker
51 51
 
52
+{{ include "no-remote-sudo.md" }}
53
+
52 54
 Boot2Docker will log you in automatically so you can start using Docker right away.
53 55
 
54 56
 Let's try the `hello-world` example image. Run
... ...
@@ -4,6 +4,8 @@ page_keywords: Docker, Docker documentation, CLI, command line
4 4
 
5 5
 # Command Line
6 6
 
7
+{{ include "no-remote-sudo.md" }}
8
+
7 9
 To list available commands, either run `docker` with no parameters
8 10
 or execute `docker help`:
9 11
 
... ...
@@ -9,6 +9,8 @@ page_keywords: docker guide, docker, docker platform, virtualization framework,
9 9
 Docker allows you to run applications inside containers. Running an
10 10
 application inside a container takes a single command: `docker run`.
11 11
 
12
+{{ include "no-remote-sudo.md" }}
13
+
12 14
 ## Hello world
13 15
 
14 16
 Let's try it now.