The first chapter Docker one minute after blasting easily

table of Contents

1 Docker Introduction

2 Docker installation

    2.1 Uninstall Docker

    2.2 yum installation source is provided

    Download the specified version 2.3 Docker

    2.4 Starting Docker

    2.5 verify Docker

    Run Docker hello-world 2.6


1 Docker Introduction

        Docker is a container management tool. The container appears just like humans toward independence from the open-pit toilet as cross-age significance. The figure below may cause extreme discomfort. Watch carefully.


2 Docker installation

        Based centos7. Other installation tutorial system of most people I do not tell him.

2.1 Uninstall Docker

        Like marry rich, beautiful, good body, style, and prior to your big sister dead, you first need to do is cut off Qingsi decisively with the old good friend. Before you install the new Docker, Docker to first uninstall the system was installed. In the world of technology, if you can not emotionally strong, very vulnerable to old and new conflicts. When to let you by surprise, scream. Command after blasting former lover as follows:

# yum remove docker \             

                     docker-client \             

                     docker-client-latest \             

                     docker-common \             

                     docker-latest \             

                     docker-latest-logrotate \             

                     docker-logrotate \             

                     docker-engine

2.2 yum installation source is provided

# wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo \

            -The /etc/yum.repos.d/docker-ce.repo

Download the specified version 2.3 Docker

# yum install -y docker-ce-18.06.1.ce-3.el7

2.4 Starting Docker

# systemctl start docker && systemctl enable docker

2.5 verify Docker

# docker version

Run Docker hello-world 2.6

# docker run hello-world

        Since then, you've relaxed in less than a minute after blasting the Docker.

Guess you like

Origin blog.51cto.com/14625168/2455075