Docker Installation
Install Docker Engine and the Compose plugin on a CentOS server, enable the service, and keep the removal commands handy.
updated 1 min read
Install
It's pretty simple to install docker. Copy this to your terminal.
yum install -y yum-utilsyum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repoyum install docker-ce docker-ce-cli containerd.io docker-compose-pluginsystemctl enable docker --nowUninstall
For removing.
yum remove docker-ce docker-ce-cli containerd.io docker-compose-pluginrm -rf /var/lib/dockerrm -rf /var/lib/containerd