<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Remove Untagged Images From Docker

      I’ve been playing around a lot with docker. It’s awesome, and it creates a whole new world of possibilities, and I’m constantly coming up with new ideas of where it could be useful.

      After playing with docker for about a week on my development server, I logged in to find that my disk was completely full. I guess after dynamically spinning up dozens of containers, and building a bunch of projects with Dockerfiles I had accumulated quite a few stopped containers and untagged images. I suspect the build process to be the biggest contributor to this, as each step in your dockerfile creates a new container, which serves as the base for the next step. This is usfeul because it can cache the containers and speed up builds, but it does consume a bit of space.

      I was not able to find any built-in commands for clearing stopped containers and untagged images, so I was able to put together a couple commands.

      Remove all stopped containers.

      docker rm $(docker ps -a -q)

      This will remove all stopped containers by getting a list of all containers with docker ps -a -q and passing their ids to docker rm. This should not remove any running containers, and it will tell you it can’t remove a running image.

      Remove all untagged images

      In the process of running docker I had accumulated several images that are not tagged. To remove these I use this command:

      docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

      This works by using rmi with a list of image ids. To get the image ids we call docker images then pipe it to grep "^<none>". The grep will filter it down to only lines with the value “<none>” in the repository column. Then to extract the id out of the third column we pipe it to awk "{print $3}" which will print the third column of each line passed to it.

      After running these two commands I recovered 15G of space. There may be more I could do to recover more space, my docker graph directory still is over 5G, but for now this works.


      http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html

      posted @ 2017-10-26 14:08  DukeCheng  閱讀(187)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 国产成人AV男人的天堂| 人妻系列无码专区69影院| 麻豆一区二区三区蜜桃免费| 国产av中文字幕精品| 成人性生交大片免费看r链接| 久久精品国产精品亚洲综合| 国产成人综合色就色综合| 国产一区二区在线有码| 最新国产AV最新国产在钱| 国精品无码人妻一区二区三区| 少妇熟女天堂网av| 夜鲁鲁鲁夜夜综合视频| 99久久99这里只有免费费精品| 亚洲av色综合久久综合| 国产美女裸身网站免费观看视频| 国产初高中生粉嫩无套第一次| 亚洲熟女精品一区二区| 久久视频在线视频| 麻豆a级片| 久久久久亚洲AV成人片一区| 亚洲av无码专区在线亚| 亚洲蜜臀av乱码久久| 18分钟处破好疼哭视频在线观看| 人人爽人人爽人人片a免费| 国产精品久久久天天影视香蕉| 亚洲国产色婷婷久久99精品91| 国产欧美日韩精品丝袜高跟鞋| 特级aaaaaaaaa毛片免费视频| 国产精品老熟女乱一区二区| 亚洲人成电影在线天堂色| 龙川县| 欧美18videosex性欧美tube1080 | 亚洲av色香蕉一二三区| 人妻系列无码专区69影院| 国产精品中文字幕免费| 色综合视频一区二区三区| 国产地址二永久伊甸园| 国产午夜福利小视频在线| 人人妻人人添人人爽日韩欧美| 国产精品美女久久久久久麻豆| 亚洲永久精品免费在线看|