Last active
March 12, 2018 15:02
-
-
Save SpiralOutDotEu/5b5d16129d099016fdb9 to your computer and use it in GitHub Desktop.
Docker installation in Linux Mint (and Ubuntu)
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
# Install missing packages | |
# Linux Mint user need that. Ubuntu users have it pre-installed | |
sudo apt-get update | |
sudo apt-get install -y curl cgroup-lite lxc | |
# Install Docker | |
curl -sSL https://get.docker.com/ | sudo sh | |
# Close this terminal and start a new one to make changes take effect | |
exit | |
# Test installation with a minimal 5MB Linux Alpine and log in with sh | |
sudo docker run -i -t alpine sh | |
# Test installation with Ubuntu and log in with bash | |
sudo docker run -i -t ubuntu bash | |
# Docker-compose is a must have tool to orchestrate Docker. | |
# You install the latest release by checking | |
# https://github.com/docker/compose/releases | |
# if you find permission denied error, try to log as 'su' | |
# Install 1.7.1 version with | |
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
# Install Docker machine | |
curl -L https://github.com/docker/machine/releases/download/v0.7.0/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine && \ | |
chmod +x /usr/local/bin/docker-machine | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script to install Docker to Linux Mint and Ubuntu