-
-
Save ironbyte/2cce820c68f534bf01669986097ee41f to your computer and use it in GitHub Desktop.
A simple script to install docker on a server
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
#!/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