运维kubernetesdocker安装iamxun2019-10-162024-11-29docker安装 安装 123456789101112131415161718yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engineyum install -y yum-utils \ device-mapper-persistent-data \ lvm2yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repoyum install -y docker-ce docker-ce-cli containerd.iosystemctl start dockersystemctl enable docker 基本设置 设置国内镜像源 12345678cat > /etc/docker/daemon.json <<EOF{ "registry-mirrors":["https://mirror.ccs.tencentyun.com"], "log-driver":"json-file", "log-opts": {"max-size":"100m", "max-file":"3"}}EOFsystemctl restart docker