Install Docker Linux - kimschles/schlesinger-knowledge GitHub Wiki
Install Docker on Linux Debian 9
From Get Docker CE for Debian and LinuxAcademy's Docker Certified Associate Prep Course
Step 1: Install dependencies
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Step 2: Pull down GPG key for the repo we’re going to add
Step 3:
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/debian \ $(lsb_release -cs) \ stable"
Step 4: Pull Down the Docker Repo Cache
sudo apt-get update
Step 5: Install the Docker CE Version
sudo apt-get install docker-ce
Step 6: Check Docker's Status
Is Docker Running?
systemctl status docker
Optional: Step 6: Add Yourself to the Docker User Group
- Create the Docker Group
sudo groupadd docker
- Add your user to the docker group
sudo usermod -aG docker $USER
- Log out and back in, then check that docker commands work without
sudo
docker run hello-world