Last active
April 27, 2019 07:43
-
-
Save skynet86/ebdf394389427c8a71ed8af4a8ee7326 to your computer and use it in GitHub Desktop.
Install Docker on Debian 9
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
# update install packages | |
$ apt update | |
# install a few prerequisite packages | |
$ apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
# add the GPG key for the official Docker repository | |
$ curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | |
# Docker repository to APT sources | |
$ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | |
# update install packages | |
$ apt update | |
# install from the Docker repo | |
$ apt-cache policy docker-ce | |
# finally, install Docker | |
$ apt install docker-ce | |
# start daemon | |
$ service docker start | |
# check docker daemon status | |
$ service docker status | |
# check docker running with | |
$ docker info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment