1
0
mirror of https://github.com/docker/cli.git synced 2026-01-26 15:41:42 +03:00
Files
cli/components/engine/packaging/ubuntu
Jonas Pfenniger 4b7018962a docker.upstart: avoid spawning a sh process
start script / end script create an intermediate sh process.
Upstream-commit: 24dd50490a027f01ea086eb90663d53348fa770e
Component: engine
2013-07-15 11:40:35 +01:00
..

Docker on Ubuntu
================

The easiest way to get docker up and running natively on Ubuntu is installing
it from its official PPA::

  sudo sh -c "echo 'deb http://ppa.launchpad.net/dotcloud/lxc-docker/ubuntu precise main' >>/etc/apt/sources.list"
  sudo apt-get update
  sudo apt-get install lxc-docker


Building docker package
~~~~~~~~~~~~~~~~~~~~~~~

The building process is shared by both, developers and maintainers. If you are
a developer, the Makefile will stop with exit status 2 right before signing
the built packages.

Assuming you are working on an Ubuntu 12.04 TLS system ::

  # Download a fresh copy of the docker project
  git clone https://github.com/dotcloud/docker.git
  cd docker

  # Get building dependencies
  sudo apt-get update; sudo apt-get install -y debhelper autotools-dev devscripts golang

  # Make the ubuntu package
  (cd packaging/ubuntu; make ubuntu)


Install docker built package
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

  sudo dpkg -i lxc-docker_*_amd64.deb; sudo apt-get install -f -y