Skip to content

Instantly share code, notes, and snippets.

@ironbyte
Forked from mattgrayisok/docker-it.sh
Created May 20, 2019 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironbyte/2cce820c68f534bf01669986097ee41f to your computer and use it in GitHub Desktop.
Save ironbyte/2cce820c68f534bf01669986097ee41f to your computer and use it in GitHub Desktop.
A simple script to install docker on a server
#!/bin/sh
curl https://get.docker.com | sh
sudo curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -aG docker $USER
echo "****************"
echo "* Docker and docker-compose have been installed"
echo "* The current user has been added to the docker group"
echo "* Close and restart this session or run 'su - $USER' to refresh your active groups"
echo "****************"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment