forked from moby/moby
-
Notifications
You must be signed in to change notification settings - Fork 0
debian package
Greg Fitzgerald edited this page Jun 22, 2013
·
8 revisions
sudo apt-get update sudo apt-get install -y debhelper build-essential autotools-dev golang git clone https://github.com/dotcloud/docker cd docker/packaging/debian make debian sudo dpkg -i lxc-docker_*-1_amd64.deb; sudo apt-get install -f -y
You'll want to edit /etc/default/grub to enable cgroup memory and swap accounting.
Replace
GRUB_CMDLINE_LINUX=""
with
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount"
Then update your grub configuration like so.
sudo grub-mkconfig -o /boot/grub/grub.cfg
Before rebooting add the following line to /etc/fstab
cgroup /sys/fs/cgroup cgroup defaults 0 0
You should now have docker setup, but it will require a reboot for the cgroup changes to take affect.
Once rebooted docker should be running. You can now run commands against it using lxc-docker If it's not running you can start it with the init script /etc/init.d/lxc-docker start