Linux serverNETWORK ADMINISTRATIONS

Docker Installing on centos 7

Install docker on centos 7

Step-1: Remove existing docker if you have install before on you host
yum remove docker docker-*

Step-2: Install yum utilities
yum install -y yum-utils

Step-3: Add Docker Repository
yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo

Step-4: Install Docker Engine
yum install docker-ce docker-ce-cli containerd.io

Step-5: Start and make permanent Docker Engine
systemctl start docker
systemctl enable docker

Test: Installing nginx from docker hub
docker run -d –name nginx -p 8080:80 nginx

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *