Skip to content

Instantly share code, notes, and snippets.

@ratacibernetica
Created May 23, 2020 23:19
Show Gist options
  • Save ratacibernetica/daca52eb88b71f2b19015cfd803df3bf to your computer and use it in GitHub Desktop.
Save ratacibernetica/daca52eb88b71f2b19015cfd803df3bf to your computer and use it in GitHub Desktop.
install docker in Centos 8
sudo yum install -y yum-utils
sudo yum install docker-ce docker-ce-cli containerd.io
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf repolist -v
dnf list docker-ce --showduplicates | sort -r
sudo dnf -y install docker-ce --nobest
docker ps
sudo systemctl enable --now docker
docker ps
systemctl status docker
mkdir -p /etc/systemd/system/containerd.service.d
touch /etc/systemd/system/containerd.service.d/override.conf
echo -e "[Service]\nExecStartPre=" >> /etc/systemd/system/containerd.service.d/override.conf
systemctl daemon-reload
systemctl start docker
docker ps
yum downgrade docker-ce-cli-19.03.8-3.el7
docker ps
history
@phgogo
Copy link

phgogo commented Oct 29, 2020

Did not work for me on a fresh Centos8 instance on AWS. Try:

dnf -y install iptables --nobest
dnf -y install iptables-services --nobest
systemctl enable iptables.service 
systemctl enable ip6tables.service 
systemctl start iptables.service 
systemctl start ip6tables.service 
dnf -y install docker-ce --nobest 
systemctl enable --now docker 
systemctl restart --now docker 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment