ubuntulinux.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .. _ubuntu_linux:
  2. Ubuntu Linux
  3. ============
  4. **Please note this project is currently under heavy development. It should not be used in production.**
  5. Right now, the officially supported distribution are:
  6. - :ref:`ubuntu_precise`
  7. - :ref:`ubuntu_raring`
  8. Docker has the following dependencies
  9. * Linux kernel 3.8
  10. * AUFS file system support (we are working on BTRFS support as an alternative)
  11. .. _ubuntu_precise:
  12. Ubuntu Precise 12.04 (LTS) (64-bit)
  13. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  14. This installation path should work at all times.
  15. Dependencies
  16. ------------
  17. **Linux kernel 3.8**
  18. Due to a bug in LXC docker works best on the 3.8 kernel. Precise comes with a 3.2 kernel, so we need to upgrade it. The kernel we install comes with AUFS built in.
  19. .. code-block:: bash
  20. # install the backported kernel
  21. sudo apt-get update && sudo apt-get install linux-image-3.8.0-19-generic
  22. # reboot
  23. sudo reboot
  24. Installation
  25. ------------
  26. Docker is available as a Ubuntu PPA (Personal Package Archive),
  27. `hosted on launchpad <https://launchpad.net/~dotcloud/+archive/lxc-docker>`_
  28. which makes installing Docker on Ubuntu very easy.
  29. .. code-block:: bash
  30. # Add the PPA sources to your apt sources list.
  31. sudo sh -c "echo 'deb http://ppa.launchpad.net/dotcloud/lxc-docker/ubuntu precise main' > /etc/apt/sources.list.d/lxc-docker.list"
  32. # Update your sources, you will see a warning.
  33. sudo apt-get update
  34. # Install, you will see another warning that the package cannot be authenticated. Confirm install.
  35. sudo apt-get install lxc-docker
  36. Verify it worked
  37. .. code-block:: bash
  38. # download the base 'ubuntu' container and run bash inside it while setting up an interactive shell
  39. docker run -i -t ubuntu /bin/bash
  40. # type 'exit' to exit
  41. **Done!**, now continue with the :ref:`hello_world` example.
  42. .. _ubuntu_raring:
  43. Ubuntu Raring 13.04 (64 bit)
  44. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45. Dependencies
  46. ------------
  47. **AUFS filesystem support**
  48. Ubuntu Raring already comes with the 3.8 kernel, so we don't need to install it. However, not all systems
  49. have AUFS filesystem support enabled, so we need to install it.
  50. .. code-block:: bash
  51. sudo apt-get update
  52. sudo apt-get install linux-image-extra-`uname -r`
  53. Installation
  54. ------------
  55. Docker is available as a Ubuntu PPA (Personal Package Archive),
  56. `hosted on launchpad <https://launchpad.net/~dotcloud/+archive/lxc-docker>`_
  57. which makes installing Docker on Ubuntu very easy.
  58. Add the custom package sources to your apt sources list.
  59. .. code-block:: bash
  60. # add the sources to your apt
  61. sudo add-apt-repository ppa:dotcloud/lxc-docker
  62. # update
  63. sudo apt-get update
  64. # install
  65. sudo apt-get install lxc-docker
  66. Verify it worked
  67. .. code-block:: bash
  68. # download the base 'ubuntu' container and run bash inside it while setting up an interactive shell
  69. docker run -i -t ubuntu /bin/bash
  70. # type exit to exit
  71. **Done!**, now continue with the :ref:`hello_world` example.