Install Docker CE

From Bitbull Wiki
Jump to navigation Jump to search

1 CentOS 8

1.1 Optional if needed

firewall-cmd --permanent --zone=public --set-target=ACCEPT
firewall-cmd --zone=public --add-masquerade --permanent

1.2 Setup

firewall-cmd --reload
yum -y install epel-release
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo
yum install docker-ce docker-ce-cli -y
usermod -aG docker $(whoami)
systemctl start docker
systemctl enable docker

1.3 Docker Compose Setup

test -d $HOME/bin || mkdir $HOME/bin
curl -L "$(uname -s)-$(uname -m)" -o $HOME/bin/docker-compose
chmod 700 $HOME/bin/docker-compose