Merge pull request #15335 from moxiegirl/boot2docker-remove-refs

Boot2Docker Cleanup
This commit is contained in:
Sebastiaan van Stijn 2015-08-06 08:48:57 +02:00
commit ad5355151c
12 changed files with 46 additions and 55 deletions

View File

@ -83,8 +83,8 @@ own.
container with this image. container with this image.
The container exposes port 8000 on the localhost so that you can connect and The container exposes port 8000 on the localhost so that you can connect and
see your changes. If you are running Boot2Docker, use the `boot2docker ip` see your changes. If you use Docker Machine, the `docker-machine ip
to get the address of your server. <machine-name>` command gives you the address of your server.
6. Check your writing for style and mechanical errors. 6. Check your writing for style and mechanical errors.
@ -154,18 +154,20 @@ update the root docs pages by running
$ make AWS_S3_BUCKET=dowideit-docs BUILD_ROOT=yes docs-release $ make AWS_S3_BUCKET=dowideit-docs BUILD_ROOT=yes docs-release
### Errors publishing using Boot2Docker ### Errors publishing using a Docker Machine VM
Sometimes, in a Boot2Docker environment, the publishing procedure returns this Sometimes, in a Windows or Mac environment, the publishing procedure returns this
error: error:
Post http:///var/run/docker.sock/build?rm=1&t=docker-docs%3Apost-1.2.0-docs_update-2: Post http:///var/run/docker.sock/build?rm=1&t=docker-docs%3Apost-1.2.0-docs_update-2:
dial unix /var/run/docker.sock: no such file or directory. dial unix /var/run/docker.sock: no such file or directory.
If this happens, set the Docker host. Run the following command to set the If this happens, set the Docker host. Run the following command to get the
variables in your shell: variables in your shell:
$ eval "$(boot2docker shellinit)" docker-machine env <machine-name>
Then, set your environment accordingly.
## Cherry-picking documentation changes to update an existing release. ## Cherry-picking documentation changes to update an existing release.

View File

@ -47,10 +47,6 @@ image cache.
> characters of the full image ID - which can be found using > characters of the full image ID - which can be found using
> `docker inspect` or `docker images --no-trunc=true`. > `docker inspect` or `docker images --no-trunc=true`.
> **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.
## Running an interactive shell ## Running an interactive shell
To run an interactive shell in the Ubuntu image: To run an interactive shell in the Ubuntu image:

View File

@ -58,7 +58,7 @@ First generate CA private and public keys:
State or Province Name (full name) [Some-State]:Queensland State or Province Name (full name) [Some-State]:Queensland
Locality Name (eg, city) []:Brisbane Locality Name (eg, city) []:Brisbane
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Docker Inc Organization Name (eg, company) [Internet Widgits Pty Ltd]:Docker Inc
Organizational Unit Name (eg, section) []:Boot2Docker Organizational Unit Name (eg, section) []:Sales
Common Name (e.g. server FQDN or YOUR name) []:$HOST Common Name (e.g. server FQDN or YOUR name) []:$HOST
Email Address []:Sven@home.org.au Email Address []:Sven@home.org.au

View File

@ -311,40 +311,36 @@ installer](https://www.docker.com/toolbox).
## Container port redirection ## Container port redirection
If you are curious, the username for the Docker default user is `docker` If you are curious, the username for the Docker default user is `docker` and the
and the password is `tcuser`. password is `tcuser`. The latest version of `docker-machine` sets up a host only
network adaptor which provides access to the container's ports.
The latest version of `boot2docker` sets up a host only network adaptor which If you run a container with a published port:
provides access to the container's ports.
If you run a container with an exposed port: $ docker run --rm -i -t -p 80:80 nginx
docker run --rm -i -t -p 80:80 nginx Then you should be able to access that nginx server using the IP address
reported to you using:
Then you should be able to access that nginx server using the IP address reported $ docker-machine ip
to you using:
boot2docker ip Typically, the IP is 192.168.59.103, but it could get changed by VirtualBox's
DHCP implementation.
Typically, it is 192.168.59.103, but it could get changed by VirtualBox's DHCP
implementation.
For further information or to report issues, please see the [Boot2Docker site](http://boot2docker.io)
## Login with PUTTY instead of using the CMD ## Login with PUTTY instead of using the CMD
Boot2Docker generates and uses the public/private key pair in your `%USERPROFILE%\.ssh` Docker Machine generates and uses the public/private key pair in your
directory so to log in you need to use the private key from this same directory. `%USERPROFILE%\.ssh` directory so to log in you need to use the private key from
this same directory. The private key needs to be converted into the format PuTTY
The private key needs to be converted into the format PuTTY uses. uses. You can do this with
You can do this with
[puttygen](http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html): [puttygen](http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html):
- Open `puttygen.exe` and load ("File"->"Load" menu) the private key from 1. Open `puttygen.exe` and load ("File"->"Load" menu) the private key from
`%USERPROFILE%\.ssh\id_boot2docker` `%USERPROFILE%\.ssh\id_boot2docker`
- then click: "Save Private Key".
- Then use the saved file to login with PuTTY using `docker@127.0.0.1:2022`. 2. Click "Save Private Key".
3. Use the saved file to login with PuTTY using `docker@127.0.0.1:2022`.
## Uninstallation ## Uninstallation

View File

@ -33,7 +33,7 @@ Docker currently runs only on Linux, but you can use VirtualBox to run Docker in
a virtual machine on your box, and get the best of both worlds. Check out the a virtual machine on your box, and get the best of both worlds. Check out the
[*Mac OS X*](/installation/mac/) and [*Microsoft [*Mac OS X*](/installation/mac/) and [*Microsoft
Windows*](/installation/windows/) installation guides. The small Linux Windows*](/installation/windows/) installation guides. The small Linux
distribution boot2docker can be run inside virtual machines on these two distribution Docker Machine can be run inside virtual machines on these two
operating systems. operating systems.
>**Note:** if you are using a remote Docker daemon on a VM through Docker >**Note:** if you are using a remote Docker daemon on a VM through Docker

View File

@ -29,7 +29,7 @@ you continue working with your fork on this branch.
## Clean your host of Docker artifacts ## Clean your host of Docker artifacts
Docker developers run the latest stable release of the Docker software (with Boot2Docker if their machine is Mac OS X). They clean their local Docker developers run the latest stable release of the Docker software (with Docker Machine if their machine is Mac OS X). They clean their local
hosts of unnecessary Docker artifacts such as stopped containers or unused hosts of unnecessary Docker artifacts such as stopped containers or unused
images. Cleaning unnecessary artifacts isn't strictly necessary, but it is images. Cleaning unnecessary artifacts isn't strictly necessary, but it is
good practice, so it is included here. good practice, so it is included here.

View File

@ -57,8 +57,8 @@ target="_blank">docker/docker repository</a>.
$ cd ~ $ cd ~
In Windows, you'll work in your Boot2Docker window instead of Powershell or In Windows, you'll work in your Docker Quickstart Terminal window instead of
a `cmd` window. Powershell or a `cmd` window.
6. Create a `repos` directory. 6. Create a `repos` directory.

View File

@ -258,9 +258,9 @@ can browse the docs.
4. Enter the URL in your browser. 4. Enter the URL in your browser.
If you are running Boot2Docker, replace the default localhost address If you are using Docker Machine, replace the default localhost address
(0.0.0.0) with your DOCKERHOST value. You can get this value at any time by (0.0.0.0) with your DOCKERHOST value. You can get this value at any time by
entering `boot2docker ip` at the command line. entering `docker-machine ip <machine-name>` at the command line.
5. Once in the documentation, look for the red notice to verify you are seeing the correct build. 5. Once in the documentation, look for the red notice to verify you are seeing the correct build.

View File

@ -10,10 +10,6 @@ parent = "smn_cli"
# Using the command line # Using the command line
> **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.
To list available commands, either run `docker` with no parameters To list available commands, either run `docker` with no parameters
or execute `docker help`: or execute `docker help`:

View File

@ -256,7 +256,7 @@ Let's create a directory and a `Dockerfile` first.
$ cd sinatra $ cd sinatra
$ touch Dockerfile $ 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`. directory by `cd` to `/c/Users/your_user_name`.
Each instruction creates a new layer of the image. Let's look at a simple Each instruction creates a new layer of the image. Let's look at a simple

View File

@ -15,9 +15,10 @@ parent = "smn_applied"
Docker allows you to run applications inside containers. Running an Docker allows you to run applications inside containers. Running an
application inside a container takes a single command: `docker run`. application inside a container takes a single command: `docker run`.
> **Note:** if you are using a remote Docker daemon, such as Boot2Docker, >**Note**: Depending on your Docker system configuration, you may be required to
> then _do not_ type the `sudo` before the `docker` commands shown in the >preface each `docker` command on this page with `sudo`. To avoid this behavior,
> documentation's examples. >your system administrator can create a Unix group called `docker` and add users
>to it.
## Hello world ## Hello world

View File

@ -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 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. directory from your Docker daemon's host into a container.
> **Note:** >**Note**: If you are using Docker Machine on Mac or Windows, your Docker daemon
> If you are using Boot2Docker, your Docker daemon only has limited access to >only has limited access to your OS X/Windows filesystem. Docker Machine tries
> your OS X/Windows filesystem. Boot2Docker tries to auto-share your `/Users` >to auto-share your `/Users` (OS X) or `C:\Users` (Windows) directory - and so
> (OS X) or `C:\Users` (Windows) directory - and so you can mount files or directories >you can mount files or directories using `docker run -v
> using `docker run -v /Users/<path>:/<container path> ...` (OS X) or >/Users/<path>:/<container path> ...` (OS X) or `docker run -v
> `docker run -v /c/Users/<path>:/<container path ...` (Windows). All other paths >/c/Users/<path>:/<container path ...` (Windows). All other paths come from your
> come from the Boot2Docker virtual machine's filesystem. >virtual machine's filesystem.
$ docker run -d -P --name web -v /src/webapp:/opt/webapp training/webapp python app.py $ docker run -d -P --name web -v /src/webapp:/opt/webapp training/webapp python app.py