Browse code

Updated ubuntu install

Thatcher Peskens authored on 2013/04/20 12:59:43
Showing 1 changed files
... ...
@@ -1,56 +1,42 @@
1
-.. _ubuntu_linux:
1
+Docker on Ubuntu
2
+================
2 3
 
3
-Ubuntu Linux
4
-============
4
+Docker is now available as a Ubuntu PPA (Personal Package Archive), which makes installing Docker on Ubuntu super easy!
5 5
 
6
-  **Please note this project is currently under heavy development. It should not be used in production.**
6
+**The Requirements**
7 7
 
8
+* Ubuntu 12.04 (LTS) or Ubuntu 12.10
9
+* **64-bit Operating system**
8 10
 
9 11
 
10
-Installing on Ubuntu 12.04 and 12.10
12
+Add the custom package sources to your apt sources list. Copy and paste both the following lines at once.
11 13
 
12
-Right now, the officially supported distributions are:
14
+.. code-block:: bash
13 15
 
14
-Ubuntu 12.04 (precise LTS)
15
-Ubuntu 12.10 (quantal)
16
-Docker probably works on other distributions featuring a recent kernel, the AUFS patch, and up-to-date lxc. However this has not been tested.
16
+   sudo sh -c "echo 'deb http://ppa.launchpad.net/dotcloud/lxc-docker/ubuntu precise main' \
17
+   >> /etc/apt/sources.list"
17 18
 
18
-Install dependencies:
19 19
 
20
-::
20
+Update your sources. You will see a warning that GPG signatures cannot be verified
21 21
 
22
-    sudo apt-get install lxc wget bsdtar curl
23
-    sudo apt-get install linux-image-extra-`uname -r`
22
+.. code-block:: bash
24 23
 
25
-The linux-image-extra package is needed on standard Ubuntu EC2 AMIs in order to install the aufs kernel module.
24
+   sudo apt-get update
26 25
 
27
-Install the latest docker binary:
28 26
 
29
-::
27
+Now install it, you will see another warning that the package cannot be authenticated.
30 28
 
31
-    wget http://get.docker.io/builds/$(uname -s)/$(uname -m)/docker-master.tgz
32
-    tar -xf docker-master.tgz
29
+.. code-block:: bash
33 30
 
34
-Run your first container!
31
+   sudo apt-get install lxc-docker
35 32
 
36
-::
37 33
 
38
-    cd docker-master
34
+**Run!**
39 35
 
40
-::
36
+.. code-block:: bash
41 37
 
42
-    sudo ./docker run -i -t base /bin/bash
38
+   docker
43 39
 
44 40
 
45
-To run docker as a daemon, in the background, and allow non-root users to run ``docker`` start
46
-docker -d
47 41
 
48
-::
49
-
50
-    sudo ./docker -d &
51
-
52
-
53
-Consider adding docker to your PATH for simplicity.
54
-
55
-Continue with the :ref:`hello_world` example.
56 42
\ No newline at end of file
43
+Probably you would like to continue with the :ref:`hello_world` example.
57 44
\ No newline at end of file