Skip to content

Instantly share code, notes, and snippets.

@jnoller
Last active December 28, 2015 00:49
Show Gist options
  • Save jnoller/7416128 to your computer and use it in GitHub Desktop.
Save jnoller/7416128 to your computer and use it in GitHub Desktop.
Dockerrrrrr
#!/bin/bash
# Add the Docker repository key to your local keychain
# using apt-key finger you can check the fingerprint matches 36A1 D786 9245 C895 0F96 6E92 D857 6A8B A88D 21E9
sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
# Add the Docker repository to your apt sources list.
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
# update
apt-get update
# install
apt-get install -y lxc-docker
# download the base 'ubuntu' container
# and run bash inside it while setting up an interactive shell
sudo 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