Docker入门笔记(Centos7)

centos7linux

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

vim docker-ce.repojson

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

yum repolistcentos

yum install docker-cecentos7

mkdir /etc/dockerspa

vim /etc/docker/daemon.jsoncode

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

systemctl start docker.serviceblog

安装完成~get

 

 

 

 

镜像查看

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

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

使用 docker image pull 软件:版本

删除 docker image rm 

查看 docker image ls

 

建立容器 docker containers create

列出因此容器 docker ps

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

相关文章
相关标签/搜索