021、映象小結(2019-01-14 週一)

三角形發表於2019-01-14
 
映象相關命令總結
 
    docker images         檢視docker host本地映象列表
    docker history         檢視映象構建歷史 
    docker commit        從容器建立新的映象,不推薦
    docker build            從Dockerfile構建映象
    docker tag               給映象打tag
    docker pul               從Registry下載映象
    docker push            向Registry上傳映象
    docker rmi               刪除docker host本地映象
    docker search          搜尋docker hub上的映象
 
 
root@docker-lab:~# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
root@docker-lab:~# docker search busybox
NAME                        DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
busybox                     Busybox base image.                             1484                [OK]                
progrium/busybox                                                            68                                      [OK]
hypriot/rpi-busybox-httpd   Raspberry Pi compatible Docker Image with a …   45                                      
radial/busyboxplus          Full-chain, Internet enabled, busybox made f…   21                                      [OK]
hypriot/armhf-busybox       Busybox base image for ARM.                     9                                       
arm32v7/busybox             Busybox base image.                             6                                       
yauritux/busybox-curl       Busybox with CURL                               5                                       
armhf/busybox               Busybox base image.                             4                                       
prom/busybox                Prometheus Busybox Docker base images           2                                       [OK]
p7ppc64/busybox             Busybox base image for ppc64.                   2                                       
armel/busybox               Busybox base image.                             2                                       
i386/busybox                Busybox base image.                             2                                       
s390x/busybox               Busybox base image.                             2                                       
onsi/grace-busybox                                                          2                                       
odise/busybox-curl                                                          2                                       [OK]
aarch64/busybox             Busybox base image.                             2                                       
sequenceiq/busybox                                                          2                                       [OK]
arm64v8/busybox             Busybox base image.                             1                                       
spotify/busybox             Spotify fork of https://hub.docker.com/_/bus…   1                                       
ppc64le/busybox             Busybox base image.                             1                                       
sou856099/busybox                                                           0                                       
trollin/busybox                                                             0                                       
cfgarden/garden-busybox                                                     0                                       
concourse/busyboxplus                                                       0                                       
amd64/busybox               Busybox base image.                             0                                       
root@docker-lab:~# docker pull busybox
Using default tag: latest
latest: Pulling from library/busybox
57c14dd66db0: Pull complete
Digest: sha256:b6e640a3768c460ad6066a003b6da52034c31aaf8500f9263057ddffcd830ef6
Status: Downloaded newer image for busybox:latest
root@docker-lab:~# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
busybox             latest              3a093384ac30        13 days ago         1.2MB
root@docker-lab:~# docker rmi busybox:latest
Untagged: busybox:latest
Untagged: busybox@sha256:b6e640a3768c460ad6066a003b6da52034c31aaf8500f9263057ddffcd830ef6
Deleted: sha256:3a093384ac306cbac30b67f1585e12b30ab1a899374dabc3170b9bca246f1444
Deleted: sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead
root@docker-lab:~# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
 

相關文章