下載映像檔

  1. 查看目前沒有任何的映像檔 (images)。
    [root@dyw219 ~]# docker images
    REPOSITORY    TAG       IMAGE ID         CREATED         VIRTUAL SIZE
    
  2. 使用 docker 下載最新的 centos image。
    [root@dyw219 ~]# docker pull centos
    latest: Pulling from centos
    28b0a3c5ee4c: Pull complete 
    1f2965b8bcc4: Pull complete 
    ee2526f4865b: Pull complete 
    Digest: sha256:b40cee82d6f98a785b6ae35748c958804621dc0f2194759a2b8911744457337d
    Status: Downloaded newer image for centos:latest
    
  3. 再查看目前的 images,倉庫中有 cenots,標纖 (TAG) latest 的映像檔。
    [root@dyw219 ~]# docker images
    REPOSITORY    TAG       IMAGE ID         CREATED         VIRTUAL SIZE
    centos        latest    ee2526f4865b     1 months ago    201.8 MB