一、在自己的机器安装docker
2022-11-27 23:20:19
admin
206
一、centos下安装
部署docker
yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
yum -y install docker-ce
yum list docker-ce.x86_64 --showduplicates | sort -r #从高到低列出Docker-ce的版本
二、ubuntu 使用官方安装脚本自动安装
安装命令如下:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
也可以使用国内 daocloud 一键安装命令:
curl -sSL https://get.daocloud.io/docker | sh
参考: https://www.runoob.com/docker/ubuntu-docker-install.html
三、Windows Docker 安装
参考:https://www.runoob.com/docker/windows-docker-install.html
四、mac安装
brew install --cask --appdir=/Applications docker
参考:https://www.runoob.com/docker/macos-docker-install.html