Debian9 Docker19 CE NFT - ewsdocker/ewsdocker.github.io GitHub Wiki
Installing Docker-CE on Debian 10.6.0 (+) and nsftables firewall
Setup
Login as root.
-
Or su, or sudo -s, or use sudo before restricted commands.
Install additional utilities.
apt-get install apt-transport-https ca-certificates curl gnupg2 wget software-properties-common
Create the docker group
groupadd docker
Add users to the docker group.
usermod -aG docker <user>
Install docker-ce package
- The latest stable version of Docker-CE is available from Docker Stable Downloads. Select the processor type (e.g. - amd64), place the mouse over the selected package, right click and select the copy link function;
- Install the latest stable version with the link copied from the above step:
- The url for the newest package at the time of this writing (August 24, 2019) is
docker-ce_19.03.2_3-0_debian-stretch_amd64.deb
-
Using the url above, the following commands will download and install the selected docker-ce package:
wget https://download.docker.com/linux/debian/dists/stretch/pool/stable/amd64/containerd.io_1.2.6-3_amd64.deb
wget https://download.docker.com/linux/debian/dists/stretch/pool/stable/amd64/docker-ce-cli_19.03.2_3-0_debian-stretch_amd64.deb
wget https://download.docker.com/linux/debian/dists/stretch/pool/stable/amd64/docker-ce_19.03.2_3-0_debian-stretch_amd64.deb
gdebi dcontainerd.io_1.2.6-3_amd64.deb
gdebi docker-ce-cli_19.03.2_3-0_debian-stretch_amd64.deb
gdebi docker-ce_19.03.2_3-0_debian-stretch_amd64.deb
Check proper installation
docker run --rm --name=hello hello-world
Enable and start the docker service
systemctl enable docker.service
systemctl start docker.service
Reboot
reboot
Docker should be available to run without root (or sudo) by any user added to the docker group.
If docker fails to start, check that docker.service is running
systemctl status docker.service
If it is not running, try re-enable/re-start at least once
systemctl enable docker.service
systemctl start docker.service
If that does not work, there is something wrong with the installation instructions
(or it was not installed properly).
Check the steps above and pay attention to the system responses.
Cleanup
rm *.deb
docker rmi hello-world
1. Install docker-compose
Goto the docker-compose releases page (https://github.com/docker/compose/releases/) and select the newest release. Download and install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
2. Test installation:
docker-compose --version
Installing Docker-CE for Debian |
||
---|---|---|
Get Docker CE for Debian | at | Docker Docs |
How-to Install Docker Engine on Diabian 9 Strecth Linux | at | Linux Config |
Docker Community Edition for Debian | at | Docker Docs |
Post Installation Steps for Linux | at | Docker Docs |
Blowb – 3.2. Install Docker | at | Blowb Docs |
Installing Docker Compose for Debian |
||
Install Docker Compose | at | Docker Docs |
How to install docker-compose on Debian 9 (Stretch) | at | How To Install |
DNS Masq and Overriding Docker DNS Servers |
||
Blowb – 3.3. Set up Dnsmasq | at | Blowb Docs |
Overriding Docker DNS Servers | at | The Codeface |