Installing the deployment Docker environment

Source: Internet
Author: User

Current Environment: CENTOS7

1. Refer to the Docker official documentation installation docker:https://docs.docker.com/engine/installation/linux/centos/

[[Email protected] ~]# Yum Update #更新yum源 [[email protected]~]# Tee/etc/yum.repos.d/docker.repo <<-'EOF'[Dockerrepo]name=Docker Repositorybaseurl=https://yum.dockerproject.org/repo/main/centos/7/Enabled=1Gpgcheck=1Gpgkey=https://YUM.DOCKERPROJECT.ORG/GPGeof# Add Yum source [[email protected]~]# Yum Install docker-engine #安装docker [[email protected]~]# systemctl Enable Docker.service #设置docker服务开机自动启动 [[email protected]~]# Systemctl start Docker #启动docker

#以上内容摘抄自docker官方文档

To view the current version after the installation is complete:

[[email protected] ~]# Docker version

Docker installation Complete

2. Set up users and groups for Docker

[Email protected] ~]# Useradd-G Docker Docker  ~]# Usermod-ag Docker Docker  #将docker用户添加到docker用户组

3. Set up Docker boot boot

[Email protected] ~]# Systemctl enable Docker.service

Ps:

~~ ~~]# systemctl status Docker

Installing the deployment Docker environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.