Setting up docker using the official docker repo, not Ubuntu packages nor EPEL.
curl https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh > check-config.sh chmod +x check-config.sh ./check-config.sh
dpkg -l | grep docker # no distro package #apt purge docker docker-engine docker.io apt install apt-transport-https ca-certificates curl software-properties-common apt install nftables bridge-utils curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg vi /etc/apt/sources.list.d/docker.list
# ubuntu deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu jammy stable # debian deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian bookworm stable
–or– (another way around)
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu `lsb_release -cs` stable" curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - apt-key fingerprint 0EBFCD88
and proceed with the installation
apt update apt install docker-ce # incl. iptables # incl. containerd.io # incl. docker-ce-cli
slackpkg search iptables slackpkg search git-2 slackpkg search procps-ng slackpkg search xz ls -lF /proc/cgroups
grab the latest Docker CE release as binaries
rel=24.0.7 wget https://download.docker.com/linux/static/stable/x86_64/docker-$rel.tgz tar xzf docker-$rel.tgz ls -lF /usr/local/bin/ cp -i docker/* /usr/local/bin/
note it is also available on github as release tag.
#git clone https://github.com/docker/docker-ce.git
ls -al /etc/yum.repos.d/ rpm -qa | grep -i docker yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum makecache fast yum install -y docker-ce
# debian grep docker /etc/group # docker:x:997: # bookworm: docker:x:996: # slackware groupadd -g 331 docker
make the docker commands available to some user
usermod -aG docker OPERATOR
note - as user you might run this command to refresh group attribution on a UNIX system
newgrp docker
see host
and if you also need Compose
git clone https://github.com/docker/compose.git cd compose/ pip install -U -r requirements.txt python setup.py install
https://download.docker.com/linux/static/stable/x86_64/
https://github.com/docker/docker-ce/tags
https://docs.docker.com/engine/installation/linux/docker-ce/binaries/#prerequisites
Install Docker Engine https://docs.docker.com/engine/install/
Install Docker Engine on Ubuntu https://docs.docker.com/engine/install/ubuntu/
https://docs.docker.com/install/linux/docker-ce/ubuntu/
https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-using-the-repository
Post-installation steps for Linux https://docs.docker.com/engine/install/linux-postinstall/