mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 05:01:28 +00:00
- Remove references to sudo in basics.md; see sudo instructions top of file
- Removing references to Boot2Docker replacing with Docker Machine - Removing sudo warnings in instances where appropriate (no sudo in file) - Updating with comments Signed-off-by: Mary Anthony <mary@docker.com>
This commit is contained in:
@@ -256,7 +256,7 @@ Let's create a directory and a `Dockerfile` first.
|
||||
$ cd sinatra
|
||||
$ touch Dockerfile
|
||||
|
||||
If you are using Boot2Docker on Windows, you may access your host
|
||||
If you are using Docker Machine on Windows, you may access your host
|
||||
directory by `cd` to `/c/Users/your_user_name`.
|
||||
|
||||
Each instruction creates a new layer of the image. Let's look at a simple
|
||||
|
||||
@@ -15,9 +15,10 @@ parent = "smn_applied"
|
||||
Docker allows you to run applications inside containers. Running an
|
||||
application inside a container takes a single command: `docker run`.
|
||||
|
||||
> **Note:** if you are using a remote Docker daemon, such as Boot2Docker,
|
||||
> then _do not_ type the `sudo` before the `docker` commands shown in the
|
||||
> documentation's examples.
|
||||
>**Note**: Depending on your Docker system configuration, you may be required to
|
||||
>preface each `docker` command on this page with `sudo`. To avoid this behavior,
|
||||
>your system administrator can create a Unix group called `docker` and add users
|
||||
>to it.
|
||||
|
||||
## Hello world
|
||||
|
||||
|
||||
@@ -90,13 +90,13 @@ You will notice in the above 'Volumes' is specifying the location on the host an
|
||||
In addition to creating a volume using the `-v` flag you can also mount a
|
||||
directory from your Docker daemon's host into a container.
|
||||
|
||||
> **Note:**
|
||||
> If you are using Boot2Docker, your Docker daemon only has limited access to
|
||||
> your OS X/Windows filesystem. Boot2Docker tries to auto-share your `/Users`
|
||||
> (OS X) or `C:\Users` (Windows) directory - and so you can mount files or directories
|
||||
> using `docker run -v /Users/<path>:/<container path> ...` (OS X) or
|
||||
> `docker run -v /c/Users/<path>:/<container path ...` (Windows). All other paths
|
||||
> come from the Boot2Docker virtual machine's filesystem.
|
||||
>**Note**: If you are using Docker Machine on Mac or Windows, your Docker daemon
|
||||
>only has limited access to your OS X/Windows filesystem. Docker Machine tries
|
||||
>to auto-share your `/Users` (OS X) or `C:\Users` (Windows) directory - and so
|
||||
>you can mount files or directories using `docker run -v
|
||||
>/Users/<path>:/<container path> ...` (OS X) or `docker run -v
|
||||
>/c/Users/<path>:/<container path ...` (Windows). All other paths come from your
|
||||
>virtual machine's filesystem.
|
||||
|
||||
$ docker run -d -P --name web -v /src/webapp:/opt/webapp training/webapp python app.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user