mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Several reader issues fixed
- Fix boot2docker url - move HomeBrew instructions to a separate section - fix docker client 5-liner to work (its still ugly) - fix and update program output Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
This commit is contained in:
parent
3230889d24
commit
56d71ae79b
1 changed files with 29 additions and 36 deletions
|
@ -28,22 +28,14 @@ Once the download is complete, open the disk image, run the set up file
|
||||||
(i.e. `VirtualBox.pkg`) and install VirtualBox. Do
|
(i.e. `VirtualBox.pkg`) and install VirtualBox. Do
|
||||||
not simply copy the package without running the installer.
|
not simply copy the package without running the installer.
|
||||||
|
|
||||||
### boot2docker
|
### Manual Installation
|
||||||
|
#### boot2docker
|
||||||
|
|
||||||
[boot2docker](https://github.com/boot2docker/boot2docker) provides a
|
[boot2docker](https://github.com/boot2docker/boot2docker) provides a
|
||||||
handy script to easily manage the VM running the `docker`
|
handy script to manage the VM running the `docker`
|
||||||
daemon. It also takes care of the installation for the OS
|
daemon. It also takes care of the installation for the OS
|
||||||
image that is used for the job.
|
image that is used for the job.
|
||||||
|
|
||||||
#### With Homebrew
|
|
||||||
|
|
||||||
If you are using Homebrew on your machine, simply run the following
|
|
||||||
command to install `boot2docker`:
|
|
||||||
|
|
||||||
$ brew install boot2docker
|
|
||||||
|
|
||||||
#### Manual installation
|
|
||||||
|
|
||||||
Open up a new terminal window, if you have not already.
|
Open up a new terminal window, if you have not already.
|
||||||
|
|
||||||
Run the following commands to get boot2docker:
|
Run the following commands to get boot2docker:
|
||||||
|
@ -52,33 +44,23 @@ Run the following commands to get boot2docker:
|
||||||
$ cd ~/bin
|
$ cd ~/bin
|
||||||
|
|
||||||
# Get the file
|
# Get the file
|
||||||
$ curl https://raw.github.com/boot2docker/boot2docker/master/boot2docker > boot2docker
|
$ curl https://raw.githubusercontent.com/boot2docker/boot2docker/master/boot2docker > boot2docker
|
||||||
|
|
||||||
# Mark it executable
|
# Mark it executable
|
||||||
$ chmod +x boot2docker
|
$ chmod +x boot2docker
|
||||||
|
|
||||||
### Docker OS X Client
|
#### Docker OS X Client
|
||||||
|
|
||||||
The `docker` daemon is accessed using the
|
The `docker` daemon is accessed using the `docker` client.
|
||||||
`docker` client.
|
|
||||||
|
|
||||||
#### With Homebrew
|
|
||||||
|
|
||||||
Run the following command to install the `docker`
|
|
||||||
client:
|
|
||||||
|
|
||||||
$ brew install docker
|
|
||||||
|
|
||||||
#### Manual installation
|
|
||||||
|
|
||||||
Run the following commands to get it downloaded and set up:
|
Run the following commands to get it downloaded and set up:
|
||||||
|
|
||||||
# Get the docker client file
|
# Get the docker client file
|
||||||
$ DIR=$(mktemp -d ${TMPDIR:-/tmp}/dockerdl.XXXXXXX) && \
|
$ DIR=$(mktemp -d ${TMPDIR:-/tmp}/dockerdl.XXXXXXX) && \
|
||||||
$ curl -f -o $DIR/ld.tgz https://get.docker.io/builds/Darwin/x86_64/docker-latest.tgz && \
|
curl -f -o $DIR/ld.tgz https://get.docker.io/builds/Darwin/x86_64/docker-latest.tgz && \
|
||||||
$ gunzip $DIR/ld.tgz && \
|
gunzip $DIR/ld.tgz && \
|
||||||
$ tar xvf $DIR/ld.tar -C $DIR/ && \
|
tar xvf $DIR/ld.tar -C $DIR/ && \
|
||||||
$ cp $DIR/usr/local/bin/docker ./docker
|
cp $DIR/usr/local/bin/docker ./docker
|
||||||
|
|
||||||
# Set the environment variable for the docker daemon
|
# Set the environment variable for the docker daemon
|
||||||
$ export DOCKER_HOST=tcp://127.0.0.1:4243
|
$ export DOCKER_HOST=tcp://127.0.0.1:4243
|
||||||
|
@ -87,6 +69,18 @@ Run the following commands to get it downloaded and set up:
|
||||||
$ sudo mkdir -p /usr/local/bin
|
$ sudo mkdir -p /usr/local/bin
|
||||||
$ sudo cp docker /usr/local/bin/
|
$ sudo cp docker /usr/local/bin/
|
||||||
|
|
||||||
|
### (OR) With Homebrew
|
||||||
|
|
||||||
|
If you are using Homebrew on your machine, simply run the following
|
||||||
|
command to install `boot2docker`:
|
||||||
|
|
||||||
|
$ brew install boot2docker
|
||||||
|
|
||||||
|
Run the following command to install the `docker`
|
||||||
|
client:
|
||||||
|
|
||||||
|
$ brew install docker
|
||||||
|
|
||||||
And that's it! Let's check out how to use it.
|
And that's it! Let's check out how to use it.
|
||||||
|
|
||||||
## How To Use Docker On Mac OS X
|
## How To Use Docker On Mac OS X
|
||||||
|
@ -104,8 +98,7 @@ commands:
|
||||||
|
|
||||||
# To see all available commands:
|
# To see all available commands:
|
||||||
$ ./boot2docker
|
$ ./boot2docker
|
||||||
|
Usage ./boot2docker {init|start|up|pause|stop|restart|status|info|delete|ssh|download}
|
||||||
# Usage ./boot2docker {init|start|up|pause|stop|restart|status|info|delete|ssh|download}
|
|
||||||
|
|
||||||
### The `docker` client
|
### The `docker` client
|
||||||
|
|
||||||
|
@ -114,12 +107,12 @@ use the `docker` client just like any other
|
||||||
application.
|
application.
|
||||||
|
|
||||||
$ docker version
|
$ docker version
|
||||||
# Client version: 0.7.6
|
Client version: 0.10.0
|
||||||
# Go version (client): go1.2
|
Client API version: 1.10
|
||||||
# Git commit (client): bc3b2ec
|
Server version: 0.10.0
|
||||||
# Server version: 0.7.5
|
Server API version: 1.10
|
||||||
# Git commit (server): c348c04
|
Last stable version: 0.10.0
|
||||||
# Go version (server): go1.2
|
|
||||||
|
|
||||||
### Forwarding VM Port Range to Host
|
### Forwarding VM Port Range to Host
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue