Daily Archives: 13.06.2022
Fixing docker does not want to update images
If you run docker pull, and you see an error like failed to register layer: Error processing tar file(exit status 2): fatal error: runtime: out of memory, there could be 2 reasons. Obvious one — not enough disk space for docker. You can fix it with
1 2 |
docker system prune -af docker volume ls -qf dangling=true |
WARNING: It will remove your unused resources like …
How to add and increase swap on CentOS
Adding a swap file without reboot If you are having a dedicated server somewhere with not that much memory, you could decide to add a swap without rebooting your server. To do so, you need to follow the routine:
1 2 3 4 |
sudo dd if=/dev/zero of=/swapfile count=1024 bs=1MiB sudo mkswap /swapfile sudo chmod 0600 /swapfile sudo swapon /swapfile |
Increasing a swap size If something goes wrong with your system, and you see that …