Created
August 23, 2020 19:47
-
-
Save shinwachi/cd9bb267122b8f38f2b36c32d9178b6b to your computer and use it in GitHub Desktop.
docker install 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
| # (log in) | |
| sudo su | |
| apt-get update | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
| add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| apt-get update | |
| apt-get install -y docker-ce | |
| exit | |
| sudo usermod -aG docker $USER | |
| exit | |
| # (log back in) | |
| docker run hello-world ; if [ $? -eq 0 ] ; then echo '### docker ok' ; else echo '### docker not ok' ; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment