Mirroring operation Docker

Mirroring operation Docker

First, to view mirror

docker images  # 查看本地镜像

Second, search mirrors

docker search 镜像名字
docker search centos

Third, the download (pull) the mirror

Https://hub.docker.com/ first find yourself in, and then find a complete pull.

docker pull centos:版本号
    
docker pull centos # 表示下载最新的,等同于docker pull centos:latest
docker pull centos:7
docker pull centos:centos6.6

Fourth, remove the mirror

docker rmi 镜像名字/id号

# 一次性删除所有镜像
docker rmi `docker images -q`  # 这个不要用

docker images -q # 过滤出所有id号

Guess you like

Origin www.cnblogs.com/bowendown/p/12601650.html