Created
May 23, 2020 23:19
-
-
Save ratacibernetica/daca52eb88b71f2b19015cfd803df3bf to your computer and use it in GitHub Desktop.
install docker in Centos 8
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did not work for me on a fresh Centos8 instance on AWS. Try: