Skip to content

Instantly share code, notes, and snippets.

@SpiralOutDotEu
Last active March 12, 2018 15:02
Show Gist options
  • Save SpiralOutDotEu/5b5d16129d099016fdb9 to your computer and use it in GitHub Desktop.
Save SpiralOutDotEu/5b5d16129d099016fdb9 to your computer and use it in GitHub Desktop.
Docker installation in Linux Mint (and Ubuntu)
# 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
@SpiralOutDotEu
Copy link
Author

Script to install Docker to Linux Mint and Ubuntu

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