Skip to content

Instantly share code, notes, and snippets.

@codenuke
Last active November 5, 2020 19:52
Show Gist options
  • Save codenuke/0e1ce75e08c56b39ff37848ff5f925fd to your computer and use it in GitHub Desktop.
Save codenuke/0e1ce75e08c56b39ff37848ff5f925fd to your computer and use it in GitHub Desktop.
The podman and buildah packages conflict with docker-ce. Remove them first:
yum erase podman buildah
https://unix.stackexchange.com/questions/611228/getting-series-of-file-conflicts-like-runc-and-containerd-when-trying-to-install
https://www.linuxtechi.com/install-docker-ce-centos-8-rhel-8/
dnf update -y ; reboot
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf list docker-ce
dnf install docker-ce --nobest -y
systemctl start docker
systemctl enable docker
docker --version
# Allows container to container communication, the solution to the problem
firewall-cmd --zone=public --add-masquerade --permanent
# standard http & https stuff
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
# + any other port you may need
# reload the firewall
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment