Last active
August 29, 2015 13:57
-
-
Save ezmac/9809076 to your computer and use it in GitHub Desktop.
Installing docker on Debian Wheezy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This will be quick and kind of dirty since I lost the original version when restarting X. My fault. Hopefully, I'll clean this up when I follow it on my laptop. I haven't yet, so it may not work correctly. | |
I used this page for some of the configuration: http://blog.denevell.org/unix-debian-docker-install.html | |
According to that page, you need kernel 3.8 or above. I'm running 3.11.10 from backports. | |
To install from binaries, use the instructions at: http://docs.docker.io/en/latest/installation/binaries/ I installed mine in ~/apps/docker. A summary follows. | |
mkdir ~/apps/docker | |
cd !$ # !$ is the argument from previous command. Great trick. | |
wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O docker | |
chmod +x docker | |
sudo groupadd docker | |
sudo usermod -a -G docker <user> #replace <user> with your user. The docker group is root equivalent. | |
sudo apt-get install lxc | |
sudo echo "none /sys/fs/cgroup cgroup defaults 0 0">>/etc/fstab | |
sudo mount -a | |
sudo ./docker -d & | |
To test, use sudo ./docker run -i -t ubuntu echo "hello world" | |
you'll also need sysctl -w net.ipv4.ip_forward=1 if you want a container to be able to communicate with the rest of the world. | |
After all this, I was having issues building/running docker containers. Killing the docker daemon and running it as docker -d -e lxc allowed me to build/run docker containers. I have not rebooted since installing docker, so that may have something to do with it. I still haven't taken the time to follow through this on another system, so it may be helpful to someone, but I can't say it works. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's also this dokku/dokku#163 (comment)