Created
December 8, 2018 12:29
-
-
Save niiku-y/0727ee23ee5fa8df4039e8a5c0d68403 to your computer and use it in GitHub Desktop.
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 | |
#install_docker.sh | |
echo "dpkg -l docker : " | |
dpkg -l docker | |
sudo apt-get update | |
echo "" | |
echo "install apt-transport-https ca-certificates curl software-properties-common : " | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
echo "" | |
echo "apt-key add : " | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
## OK | |
echo "" | |
echo "fingerprint : " | |
sudo apt-key fingerprint 0EBFCD88 | |
## Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 | |
echo "" | |
echo "add repository : " | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable edge test" | |
sudo apt-get update | |
echo "" | |
echo "install docker-ce : " | |
#apt-cache madison docker-ce | |
sudo apt-get install -y docker-ce=17.03.2~ce-0~ubuntu-xenial | |
sudo docker run hello-world | |
sudo docker info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment