Skip to content

Instantly share code, notes, and snippets.

@radekstepan
Last active January 19, 2024 10:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save radekstepan/9011207 to your computer and use it in GitHub Desktop.
Save radekstepan/9011207 to your computer and use it in GitHub Desktop.
Install Docker on Debian 7 Wheezy
#/bin/bash
if [ `getconf LONG_BIT` != 64 ]; then
exit 1
fi
sudo apt-get -y update
sudo apt-get -y install lxc wget bsdtar iptables curl golang git aufs-tools mercurial libdevmapper-dev
export GOPATH=~/usr/lib/go
export PATH=$GOPATH/bin:$PATH
mkdir -p "$GOPATH"
echo "================="
echo "GO GET docker..."
echo "================="
go get -v github.com/dotcloud/docker
rm -rf $GOPATH/src/github.com/dotcloud/docker/vendor/src/code.google.com/p/go.net/ipv6
echo "================="
echo "GO INSTALL..."
echo "================="
go install -v github.com/dotcloud/docker/
echo "================="
echo "Mounting..."
echo "================="
echo 'none /sys/fs/cgroup cgroup defaults 0 0' | sudo tee -a /etc/fstab
sudo mount /sys/fs/cgroup
echo "================="
echo "Properly installing docker from binaries..."
echo "================="
wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O $HOME/bin/docker
chmod +x $HOME/bin/docker
echo "================="
echo "Starting Daemon..."
echo "================="
docker -d &
echo "================="
echo "RUN..."
echo "================="
docker run -i -t ubuntu /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment