docker stop
Last active
March 2, 2018 23:28
-
-
Save yesoreyeram/7256c34ffd06e1607fd0c460300ac44d to your computer and use it in GitHub Desktop.
Docker installation step for ubuntu 16
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
# Extract from the following sites | |
# https://docs.docker.com/engine/installation/linux/ubuntu/ | |
# https://docs.docker.com/compose/install/ | |
# https://docs.docker.com/machine/install-machine/ | |
Install docker on Ubuntu | |
========================= | |
sudo apt-get update | |
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual --yes | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce --yes | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
logout | |
docker run hello-world | |
Install docker-compose on Ubuntu | |
================================ | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker-compose --version | |
Install docker-machine on Ubuntu | |
================================ | |
curl -L https://github.com/docker/machine/releases/download/v0.10.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine | |
chmod +x /tmp/docker-machine | |
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine | |
docker-machine version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment