Install Docker dan Portainer di CentOS 8
Jika mengikuti tutorial dari Docker Docs (diakses pada 23 Juli 2020) install docker di Centos 8 kalian akan mendapatkan error bahwa containerd.io tidak cocok dengan Docker version 19.03.12. Dampaknya pada saat membuat container, container tersebut tidak dapat melakukan update karena tidak mendapat koneksi jaringan dari docker host walaupun firewalld dinonaktifkan dan mengotak atik di virtualbox - network.
[caption id="attachment_389" align="alignnone" width="1073"] Error containerd.io install docker centos 8[/caption]
Install docker di CentOS Linux release 8.2.2004 (Core) :
yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce docker-ce-cli yum install https://download.docker.com/linux/centos/7/x86\_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86\_64.rpm
Install docker-compose secara terpisah melalui github :
curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose docker-compose --version
Start Docker
systemctl start docker systemctl enable docker docker run hello-world netstat -nlptu
Install Portainer (Container Management with GUI)
docker volume create portainer_data docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Akses web http://localhost:9000
[caption id="attachment_393" align="alignnone" width="1363"] portainer login[/caption]
[caption id="attachment_391" align="alignnone" width="1366"] dashboard container portainer[/caption]
[caption id="attachment_392" align="alignnone" width="1366"] dashboard portainer[/caption]