Skip to content

Instantly share code, notes, and snippets.

@pjmazenot
Last active March 14, 2021 17:52
Show Gist options
  • Save pjmazenot/b5e9979312bb3ca997f0729a7bb3fb4b to your computer and use it in GitHub Desktop.
Save pjmazenot/b5e9979312bb3ca997f0729a7bb3fb4b to your computer and use it in GitHub Desktop.
Install Docker CE on Lubuntu 17.04
#!/bin/sh
# Install Docker CE on Lubuntu 17.04
# Run this script with sudo privileges `sudo docker-install-lubuntu-17.04.sh`
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"
apt-get update
apt-get install -y docker-ce
# Test install with `docker version`
# Bonus: Install Docker machine
# https://docs.docker.com/machine/install-machine/#install-machine-directly
curl -L https://github.com/docker/machine/releases/download/v0.13.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && chmod +x /tmp/docker-machine && cp /tmp/docker-machine /usr/local/bin/docker-machine
# Test install with `docker-machine version`
# Bonus2: Install Docker compose
apt-get install -y docker-compose
# Test install with `docker-compose version`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment