centos7

wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo

vim docker-ce.repo

:%s@https://downdload.docker.com/@https://mirrors.tuna.tsinghua.edu.cn/docker-ce/@

yum repolist

yum install docker-ce

mkdir /etc/docker

vim /etc/docker/daemon.json

{
  "registry-mirrors":["https://registry.docker-cn.com"]
}

systemctl start docker.service

安装完成~

 Docker入门笔记(Centos7)

 

 

 

镜像查看

https://hub.docker.com/r/library

搜索后到tags查看版本跟大小

使用 docker image pull 软件:版本

删除 docker image rm 

查看 docker image ls

 

创建容器 docker containers create

列出所以容器 docker ps

启动 docker run --name 名称 参数 镜像:版本

 

相关文章:

  • 2021-08-31
  • 2021-11-28
  • 2021-06-19
  • 2021-09-21
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-23
  • 2021-11-29
  • 2021-11-22
  • 2021-09-28
  • 2021-05-24
相关资源
相似解决方案