Docker entry (two) - Docker installed on CentOS

I. Introduction

I use Virtual Box to install CentOS system for installing CentOS on Virtual Box, refer to another article install CentOS on Virtual Box , I feel good writing, there is no longer a separate written tutorial

Two, Docker installation

After entering the CentOS system and log in.

1. Check the version centos

uname -r

docker requirement is higher than the required system kernel 3.10

If less than 3.10, use the command

yum update

Updated

2. Install Docker

yum install docker

All the way yes, use the command after installation

systemctl start docker

To start docker.

No prompt is the best tips

3. Review docker version

However, we still command

docker -v

To see docker version

4. docker set to boot service

systemctl enable docker

Here Insert Picture Description

5. Stop docker

systemctl stop docker

Published 200 original articles · won praise 99 · views 40000 +

Guess you like

Origin blog.csdn.net/weixin_43889841/article/details/103904503