macos安装docker
# 方案1: 官网下载https://www.docker.com/get-started# 方案2: brew安装brew install docker
centos安装docker
文档地址: https://docs.docker.com/engine/install/centos/
# 1.卸载旧版本sudo yum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-engine# 2. 确保安装gccyum -y install gccyum -y install gcc-c++# 3. 安装配置repository (国外)(建议使用国内)sudo yum install -y yum-utilssudo yum-config-manager \--add-repo \http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo# 4. yum更新索引yum makecache fast# 5.安装容器引擎sudo yum install docker-ce docker-ce-cli containerd.io# 6. 启动dockersudo systemctl start docker# 7. 测试sudo docker run hello-world# 8. 卸载
