ミラーリング操作ドッカー

ミラーリング操作ドッカー

まず、ミラーを表示するには

docker images  # 查看本地镜像

第二に、ミラーを検索

docker search 镜像名字
docker search centos

第三に、ダウンロード(プル)ミラー

Https://hub.docker.com/最初に自分自身を見つけるし、その後完全なプルを見つけます。

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

第四には、ミラーを削除します

docker rmi 镜像名字/id号

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

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

おすすめ

転載: www.cnblogs.com/bowendown/p/12601650.html