当前位置: 首页 > Web前端 > CSS

centos7安装docker并搭建阿里云镜像仓库

时间:2023-03-30 22:49:58 CSS

Title2第一步:安装一些必要的系统工具sudoapt-getupdatesudoapt-get-yinstallapt-transport-httpsca-certificatescurlsoftware-properties-common#第二步:安装GPG证书curl-fsSLhttp://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg|sudoapt-keyadd-#第三步:写入软件源信息sudoadd-apt-repository"deb[arch=amd64]http://mirrors.aliyun.com/docker-ce/linux/ubuntu$(lsb_release-cs)stable"#第四步:更新安装Docker-CEsudoapt-get-yupdatesudoapt-get-yinstalldocker-cetitle3需要参考标题centos7安装docker并搭建阿里云镜像仓库Ubuntu14.0416.04(使用apt-gettoinstall)CentOS7(用yum安装)羊羊仙仙蘑菇哥Title1Orderedtable怎么说也不是特别好啊#vim/etc/yum.repos.d/docker-ee.repo#将[docker-ce-test]下的enabled=0改为enabled=1##安装指定版本的Docker-CE:#第一步:查找Docker-CE的版本:#yumlistdocker-ce.x86_64--showduplicates|sort-r#从缓存的主机文件加载镜像速度#加载的插件:branch,fastestmirror,langpacks#docker-ce.x86_6417.03.1.ce-1.el7.centosdocker-ce-stable#docker-ce.x86_6417.03.1.ce-1.el7.centos@docker-ce-stable#docker-ce.x86_6417.03.0.ce-1.el7.centosdocker-ce-stable#AvailablePackages#Step2:安装指定版本的docker-CE:(VERSION如上面的17.03.0.ce.1-1.el7.centos)#sudoyum-yinstalldocker-ce-[VERSION]上面的问题只是个案说明sudomkdir-p/etc/dockersudotee/etc/docker/daemon.json<<-'EOF'{"registry-mirrors":["https://uxk0ognt.mirror.aliyuncs.com"]}EOFsudosystemctldaemon-reloadsudosystemctlrestartdockercasedescription2我是一个会画画的画家,我想把那栋大房子画得漂亮画画,我要把那座大房子画得漂亮。我是一个绘画功底很强的画家。我想把那栋大房子粉刷得漂亮。