久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      docker鏡像怎么壓縮

      docker鏡像怎么壓縮

      壓縮鏡像:

      1、使用docker export和docker import

      docker export是用來(lái)保存一個(gè)容器的,所以我們需要有一個(gè)正在運(yùn)行的容器才能使用此命令。

      docker export <CONTAINER ID> > export.tar

      docker import用來(lái)加載保存的容器,但是不能恢復(fù)成一個(gè)容器,而是變成一個(gè)鏡像

      docker import export.tar <IMAGE NAME>:[TAG]

      可以用一條命令實(shí)現(xiàn)

      docker export <容器ID> | docker import - <鏡像名>[:標(biāo)簽]

      使用export和import后得到的鏡像不會(huì)保存鏡像的歷史,所以鏡像會(huì)變小。

      test鏡像未經(jīng)過(guò)壓縮的,test/import鏡像是經(jīng)過(guò)壓縮的鏡像,可以看到已經(jīng)變小了一些 :

      docker鏡像怎么壓縮

      2、使用docker-squash

      github地址:https://github.com/jwilder/docker-squash

      docker save <image id> | sudo docker-squash -t newtag | docker load

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)