久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      docker鏡像怎么壓縮

      docker鏡像怎么壓縮

      壓縮鏡像:

      1、使用docker export和docker import

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

      docker export <CONTAINER ID> > export.tar

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

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

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

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

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

      test鏡像未經(jīng)過壓縮的,test/import鏡像是經(jīng)過壓縮的鏡像,可以看到已經(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號-2    滬公網(wǎng)安備31011702889846號