2、linux下安装Docker教程并换成阿里云镜像仓库源
其余参考文档:https://www.runoob.com/docker/centos-docker-install.html
·
由于安装的镜像仓库源hubDocker是外网,下载起来会有些慢,建议将Docker的仓库源换成阿里云或网易云镜像仓库源。
登录到阿里云平台,进入容器镜像服务,在镜像加速器中选择对应的系统按照步骤操作即可。
其余参考文档1:CentOS Docker 安装
参考文档2:ubuntu18.04安装docker
参考网站:阿里云平台
设置开机启动docker:
#查看docker服务是否启动
systemctl status docker
#若未启动,则启动docker服务
sudo systemctl start docker
# 设置开机启动docker
sudo systemctl enable docker
#测试经典的hello world:
sudo docker run hello-world
更多推荐
所有评论(0)