Get the App
SLTechnology News&Howtos  ›  Servers  › 

Docker-ce installation and configuration

Shulou Source: shulou.com Published: 2022-06-03 02:32:26 11月04日 Update

1. Download docker-ce

Yum-y install wget

Cd / etc/yum.repos.d

Wget http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Yum makecache fast

2. Install docker Community version

Yum-y install docker-ce

Mkdir-p / app/docker

Mkdir-p / etc/docker

3. Configure the accelerator

Vi / etc/docker/daemon.json

{"registry-mirrors": ["https://a14c78qe.mirror.aliyuncs.com"],"

"live-restore": false

"insecure-registries": [

"reg.pinming.org"

]

}

4. Modify docker startup service

Mkdir-p / etc/systemd/system/docker.service.d/

Vi / etc/systemd/system/docker.service.d/override.conf

[Service]

ExecStart=

ExecStart=/usr/bin/dockerd-- graph=/app/docker-H 0.0.0.0pur2375-H unix:///var/run/docker.sock $DOCKER_NETWORK_OPTIONS

5. Start docker

Systemctl daemon-reload

Systemctl enable docker

Systemctl start docker

Systemctl status docker

Tags: Configuration Accelerator version Community Service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Docker Redmi Shulou Tech Info NVidia