2013-04-22 21:38:42 -04:00
|
|
|
.. _ubuntu_linux:
|
|
|
|
|
|
|
|
Ubuntu Linux
|
|
|
|
============
|
|
|
|
|
|
|
|
**Please note this project is currently under heavy development. It should not be used in production.**
|
|
|
|
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-23 15:04:53 -04:00
|
|
|
Right now, the officially supported distributions are:
|
2013-03-26 11:50:34 -04:00
|
|
|
|
2013-04-23 15:04:53 -04:00
|
|
|
- Ubuntu 12.04 (precise LTS) (64-bit)
|
|
|
|
- Ubuntu 12.10 (quantal) (64-bit)
|
|
|
|
|
|
|
|
Dependencies
|
|
|
|
------------
|
|
|
|
|
|
|
|
The linux-image-extra package is only needed on standard Ubuntu EC2 AMIs in order to install the aufs kernel module.
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-05-06 15:00:39 -04:00
|
|
|
sudo apt-get install linux-image-extra-`uname -r` lxc bsdtar
|
2013-04-23 15:04:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
Docker is available as a Ubuntu PPA (Personal Package Archive),
|
2013-04-22 16:10:32 -04:00
|
|
|
`hosted on launchpad <https://launchpad.net/~dotcloud/+archive/lxc-docker>`_
|
|
|
|
which makes installing Docker on Ubuntu very easy.
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-03-26 11:50:34 -04:00
|
|
|
|
|
|
|
|
2013-04-23 15:04:53 -04:00
|
|
|
Add the custom package sources to your apt sources list. Copy and paste the following lines at once.
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-19 23:59:43 -04:00
|
|
|
.. code-block:: bash
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-22 21:38:42 -04:00
|
|
|
sudo sh -c "echo 'deb http://ppa.launchpad.net/dotcloud/lxc-docker/ubuntu precise main' >> /etc/apt/sources.list"
|
2013-03-25 22:52:52 -04:00
|
|
|
|
|
|
|
|
2013-04-22 16:10:32 -04:00
|
|
|
Update your sources. You will see a warning that GPG signatures cannot be verified.
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-19 23:59:43 -04:00
|
|
|
.. code-block:: bash
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-19 23:59:43 -04:00
|
|
|
sudo apt-get update
|
2013-03-25 22:52:52 -04:00
|
|
|
|
|
|
|
|
2013-04-22 16:10:32 -04:00
|
|
|
Now install it, you will see another warning that the package cannot be authenticated. Confirm install.
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-19 23:59:43 -04:00
|
|
|
.. code-block:: bash
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-05-12 13:12:44 -04:00
|
|
|
apt-get install lxc-docker
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-22 21:38:42 -04:00
|
|
|
Verify it worked
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-19 23:59:43 -04:00
|
|
|
.. code-block:: bash
|
2013-03-25 22:52:52 -04:00
|
|
|
|
2013-04-19 23:59:43 -04:00
|
|
|
docker
|
2013-03-25 22:52:52 -04:00
|
|
|
|
|
|
|
|
2013-04-22 21:38:42 -04:00
|
|
|
**Done!**, now continue with the :ref:`hello_world` example.
|