Last active
December 12, 2022 15:07
-
-
Save masiuchi/a3046a7dc4971a96f8d8b04150089af8 to your computer and use it in GitHub Desktop.
Install Docker and Docker Compose to Ubuntu 14.04 LTS.
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/bash | |
# https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
sudo apt-get update | |
sudo apt-get -y install apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo bash -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list' | |
sudo apt-get update | |
sudo apt-get -y install linux-image-extra-$(uname -r) | |
sudo apt-get -y install docker-engine | |
sudo usermod -aG docker vagrant | |
# https://docs.docker.com/compose/install/ | |
sudo bash -c 'curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose' | |
sudo chmod +x /usr/local/bin/docker-compose |
it seems that docker-engine is not available now, you can try: sudo apt-get install docker-ce=17.12.1ce-0ubuntu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.