2013-04-11 20:39:47 -04:00
|
|
|
Docker on Debian
|
|
|
|
================
|
|
|
|
|
|
|
|
Docker has been built and tested on Wheezy. All docker functionality works
|
|
|
|
out of the box, except for memory limitation as the stock debian kernel
|
2013-05-14 06:28:59 -04:00
|
|
|
disables it by default. To enable docker memory limitation, the kernel needs
|
|
|
|
to be loaded with boot parameters: cgroup_enable=memory swapaccount=1
|
2013-04-11 20:39:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
Building docker package
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Assuming you have a wheezy system up and running
|
|
|
|
|
|
|
|
# Get building dependencies
|
2013-05-14 06:28:59 -04:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y debhelper build-essential autotools-dev golang
|
2013-04-11 20:39:47 -04:00
|
|
|
|
2013-05-14 06:28:59 -04:00
|
|
|
# Make the debian package
|
|
|
|
git clone https://github.com/dotcloud/docker.git
|
|
|
|
cd docker/packaging/debian
|
|
|
|
make debian
|
2013-04-11 20:39:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
Install docker package
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2013-05-14 06:28:59 -04:00
|
|
|
sudo dpkg -i lxc-docker_*-1_amd64.deb; sudo apt-get install -f -y
|