Introduced docker-ce (CentOS 7.9)

Introduction

Note that it is often installed. It's easy to forget ...

name Explanation
docker-ce Community Edition(Free version)
docker-ee Enterprise Edition(Paid version)

docker-ce installation

1. Remove unnecessary packages.

$ sudo yum remove docker \
                  docker-common \
                  docker-selinux \
                  docker-engine

2. Install the required packages.

$ sudo yum install -y yum-utils \
                      device-mapper-persistent-data \
                      lvm2

3. Add a repository.

$ sudo yum-config-manager --add-repo \
       https://download.docker.com/linux/centos/docker-ce.repo

4. Install docker-ce

$ sudo yum install docker-ce

5. Add user to docker group

$ sudo usermod -aG docker $USER
$ cat /etc/group | grep docker
$ sudo groupadd docker

6. Start docker, enable automatic start

$ sudo systemctl enable docker
$ sudo systemctl start docker

7. Done

If you exit from the terminal and log in again, the group will be reflected.


reference

-Docker v17.03 released. The version number system will change from this month, and it will be released every month.

Obtaining Docker CE (for CentOS)

Recommended Posts

Introduced docker-ce (CentOS 7.9)