新物理机如何安装docker

1. 购置物理机

2. 根据官方文档安装dockerInstall Docker Engine on CentOS | Docker Docs

```

yum update

sudo yum install -y yum-utils

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

sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo systemctl start docker

sudo docker run hello-world

```

你可能感兴趣的:(docker,容器,运维)