2022-07-10发表2022-07-10更新Docker / 安装1 分钟读完 (大约134个字)0次访问Docker安装指南记录一下Docker的安装过程。 配置yum源12yum install -y yum-utilsyum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 安装1yum install -y docker-ce docker-ce-cli containerd.io 启动1systemctl enable docker --now 配置加速12345678910111213141516sudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json <<-'EOF'{ "registry-mirrors": ["https://registry.cn-hangzhou.aliyuncs.com"], "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "log-opts": { "max-size": "100m" }, "storage-driver": "overlay2"}EOF## 重启Docker服务sudo systemctl daemon-reloadsudo systemctl restart docker 卸载12345678yum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-engine Docker安装指南https://chengzhy.github.io/2022/docker-installation-guide/作者chengzhy发布于2022-07-10更新于2022-07-10许可协议#容器指南Docker