Installation of Docker on CentOS 8
Installation
Start by running CentOS updates
Yum update- Confirm the download with ‘
Y’. - Wait until the update is finished.
First we have to install the required packages
sudo yum install -y yum-utils device-mapper-persistent-data lvm2Now we have to install the Docker repositorysudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoNow we are able to install Dockersudo yum install docker-ce docker-ce-cli containerd.io —nobestDocker has been installed.
Starting Docker
sudo systemctl start dockerCheck if Docker is workingsudo docker run hello-worldIf you get the following message, your Docker installation is working:
Hello from Docker! This message shows that your installation appears to be working correctly.
Related Tutorials
Setting up a Docker instance on your CentOS 7.4 VPSInstall Percona Server 5.7 MySQL on Ubuntu, CentOS or Debian
Locating files on your Linux VPS system using whereis, which, whatis, readlink, find
Installing Jenkins on your Centos 7.4 VPS server
Enabling sudo for your user on Ubuntu 17.04 and CentOS 7.4
comments (1)
nelufines
- 6 years agonice