Last active
February 14, 2017 13:03
-
-
Save kouyaf77/8dcf2f42d08711cb21b4e99aff01d1b9 to your computer and use it in GitHub Desktop.
Shellscript for installing Docker(1.13.1) and Docker compose(1.11.1) in Ubuntu(14.0.4)
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 | |
# Install Docker 1.13.1 | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends \ | |
linux-image-extra-$(uname -r) \ | |
linux-image-extra-virtual | |
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add - | |
apt-key fingerprint 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository \ | |
"deb https://apt.dockerproject.org/repo/ \ | |
ubuntu-$(lsb_release -cs) \ | |
main" | |
sudo apt-get update | |
sudo apt-get -y install docker-engine | |
sudo apt-get -y install docker-engine=1.13.1-0~ubuntu-trusty | |
# Install Docker compose 1.11.1 | |
curl -L https://github.com/docker/compose/releases/download/1.11.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment