2013-05-21 13:47:16 -04:00
|
|
|
:title: Installation from Binaries
|
|
|
|
:description: This instruction set is meant for hackers who want to try out Docker on a variety of environments.
|
|
|
|
:keywords: binaries, installation, docker, documentation, linux
|
|
|
|
|
2013-04-23 15:04:53 -04:00
|
|
|
.. _binaries:
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-04-23 15:04:53 -04:00
|
|
|
Binaries
|
|
|
|
========
|
2013-04-19 23:57:50 -04:00
|
|
|
|
|
|
|
**Please note this project is currently under heavy development. It should not be used in production.**
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
**This instruction set is meant for hackers who want to try out Docker on a variety of environments.**
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 23:00:20 -04:00
|
|
|
Right now, the officially supported distributions are:
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
- :ref:`ubuntu_precise`
|
|
|
|
- :ref:`ubuntu_raring`
|
2013-04-23 15:04:53 -04:00
|
|
|
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
But we know people have had success running it under
|
|
|
|
|
|
|
|
- Debian
|
|
|
|
- Suse
|
|
|
|
- :ref:`arch_linux`
|
|
|
|
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
Dependencies:
|
|
|
|
-------------
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-24 17:42:00 -04:00
|
|
|
* 3.8 Kernel (read more about :ref:`kernel`)
|
2013-05-15 19:11:59 -04:00
|
|
|
* AUFS filesystem support
|
|
|
|
* lxc
|
2013-06-14 13:58:16 -04:00
|
|
|
* xz-utils
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
Get the docker binary:
|
|
|
|
----------------------
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-06 16:26:23 -04:00
|
|
|
wget http://get.docker.io/builds/Linux/x86_64/docker-latest.tgz
|
|
|
|
tar -xf docker-latest.tgz
|
2013-04-19 23:57:50 -04:00
|
|
|
|
|
|
|
|
2013-04-23 15:04:53 -04:00
|
|
|
Run the docker daemon
|
|
|
|
---------------------
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# start the docker in daemon mode from the directory you unpacked
|
|
|
|
sudo ./docker -d &
|
2013-04-19 23:57:50 -04:00
|
|
|
|
|
|
|
|
2013-04-23 15:04:53 -04:00
|
|
|
Run your first container!
|
|
|
|
-------------------------
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# check your docker version
|
|
|
|
./docker version
|
2013-04-19 23:57:50 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# run a container and open an interactive shell in the container
|
|
|
|
./docker run -i -t ubuntu /bin/bash
|
2013-04-19 23:57:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-06 16:26:23 -04:00
|
|
|
Continue with the :ref:`hello_world` example.
|