Fix Ubuntu install doc

This commit is contained in:
Solomon Hykes 2013-04-20 17:31:49 -07:00
parent 4a9c3a92e1
commit 1201c418cd
1 changed files with 19 additions and 18 deletions

View File

@ -19,37 +19,38 @@ Install dependencies:
:: ::
sudo apt-get install lxc wget bsdtar curl sudo apt-get install lxc bsdtar
sudo apt-get install linux-image-extra-`uname -r` sudo apt-get install linux-image-extra-`uname -r`
The linux-image-extra package is needed on standard Ubuntu EC2 AMIs in order to install the aufs kernel module. The linux-image-extra package is needed on standard Ubuntu EC2 AMIs in order to install the aufs kernel module.
Install the latest docker binary: Install the docker binary
-------------------------
:: ::
wget http://get.docker.io/builds/$(uname -s)/$(uname -m)/docker-master.tgz wget http://get.docker.io/builds/Linux/x86_64/docker-master.tgz
tar -xf docker-master.tgz tar -xf docker-master.tgz
sudo cp ./docker-master /usr/local/bin
Note: docker currently only supports 64-bit Linux hosts.
Run the docker daemon
---------------------
::
sudo docker -d &
Run your first container! Run your first container!
-------------------------
:: ::
docker run -i -t ubuntu /bin/bash
cd docker-master
::
sudo ./docker run -i -t base /bin/bash
To run docker as a daemon, in the background, and allow non-root users to run ``docker`` start Check out more examples
docker -d -----------------------
::
sudo ./docker -d &
Consider adding docker to your PATH for simplicity.
Continue with the :ref:`hello_world` example. Continue with the :ref:`hello_world` example.