2
【笔记】Docker安装笔记
source link: https://feiju12138.github.io/2022/10/31/Docker%E5%AE%89%E8%A3%85%E7%AC%94%E8%AE%B0/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【笔记】Docker安装笔记
2022-10-31
2
Docker安装笔记
MacOS
brew install --cask docker
CentOS Linux
卸载之前的安装(可选)
yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine docker-ce
配置Linux镜像源(可选)
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sed -i 's/download.docker.com/mirrors.aliyun.com\/docker-ce/g' /etc/yum.repos.d/docker-ce.repo
yum makecache fast
yum install -y yum-utils device-mapper-persistent-data lvm2 --skip-broken
- ce为社区版
yum install -y docker-ce
关闭防火墙(可选)
systemctl stop firewalld
systemctl disable firewalld
启动Docker
systemctl start docker
重载配置(可选)
systemctl daemon-reload
重启Docker(可选)
systemctl restart docker
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK