Last active
February 28, 2019 00:12
-
-
Save dbjpanda/042d385443fc62411e152f4e33d06089 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #cloud-config | |
| package_update: true | |
| package_upgrade: true | |
| groups: | |
| - docker: [default] | |
| #include https://gist.githubusercontent.com/dbjpanda/042d385443fc62411e152f4e33d06089/raw/docker-install.sh |
This file contains hidden or 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 | |
| # Install lateset stable version of Docker | |
| wget -qO- https://get.docker.com/ | sh | |
| sudo usermod -aG docker $USER | |
| # Install docker-compose | |
| COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1` | |
| sudo sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose" | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| # Reboot system to take effect of the user added to `docker` group | |
| sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment