# so just skip it (you may encounter an error if there are noĭocker images -no-trunc | grep '' | awk '' | xargs -r docker rmi You can remove untagged images by running: # hint osx users: your version of xargs won’t have the -r switch Each layer is cached and uses aufs, so it decreases disk usage by itself, but it’s also leaving previous versions / layers dangling. Let’s take a look at the most common ones:ĭocker pull and docker build create new docker images. Most of the commands leave a trace behind, make a copy of something or replace an item without removing the previous version. Good practices regarding keeping disk usage to a minimumįirst of all, docker by default doesn’t care about using the disk space. Here are some tips and solutions how to avoid keeping unused volumes behind or prevent them being left in the first place. Recently I constantly ran into issues with my setup because the disk space was „leaking” somewhere and I couldn’t tell where it went. One of the main things that bother me when using docker is it hogging up disk space. That point of view doesn’t change the fact that I see a lot of drawbacks. Not only web apps, but CLI tools as well. For more than two years now I believe it will change how we deploy applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |