Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Created September 5, 2016 10:07
Show Gist options
  • Save loretoparisi/61f8ed0e8aa77bcb6bcb0a351e527df8 to your computer and use it in GitHub Desktop.
Save loretoparisi/61f8ed0e8aa77bcb6bcb0a351e527df8 to your computer and use it in GitHub Desktop.
How to install Docker on Ubuntu
#!/usr/bin/env bash
# This script install Docker on Ubuntu >= 14.04 LTS
#
# This script must be run as root:
# sudo sh install_docker.sh
#
sudo apt-get -y install docker.io
sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker
@loretoparisi
Copy link
Author

You can then verify your docker installation running a machine like this privoxy

sudo docker run -d -p 8118:8118 -p 9050:9050 rdsubhas/tor-privoxy-alpine
curl --proxy localhost:8118 https://www.google.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment