Bläddra i källkod

Merge pull request #5592 from SvenDowideit/docs-simplify-osx-install

Several OSX install reader issues fixed
James Turnbull 11 år sedan
förälder
incheckning
30d458c534
1 ändrade filer med 29 tillägg och 36 borttagningar
  1. 29 36
      docs/sources/installation/mac.md

+ 29 - 36
docs/sources/installation/mac.md

@@ -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
-
-The `docker` daemon is accessed using the
-`docker` client.
-
-#### With Homebrew
-
-Run the following command to install the `docker`
-client:
-
-    $ brew install docker
+#### Docker OS X Client
 
 
-#### Manual installation
+The `docker` daemon is accessed using the `docker` client.
 
 
 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 && \
-    $ gunzip $DIR/ld.tgz && \
-    $ tar xvf $DIR/ld.tar -C $DIR/ && \
-    $ cp $DIR/usr/local/bin/docker ./docker
+      curl -f -o $DIR/ld.tgz https://get.docker.io/builds/Darwin/x86_64/docker-latest.tgz && \
+      gunzip $DIR/ld.tgz && \
+      tar xvf $DIR/ld.tar -C $DIR/ && \
+      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
-    # Go version (client): go1.2
-    # Git commit (client): bc3b2ec
-    # Server version: 0.7.5
-    # Git commit (server): c348c04
-    # Go version (server): go1.2
+    Client version: 0.10.0
+    Client API version: 1.10
+    Server version: 0.10.0
+    Server API version: 1.10
+    Last stable version: 0.10.0
+
 
 
 ### Forwarding VM Port Range to Host
 ### Forwarding VM Port Range to Host