docker does not seem to recover from resource saver mode. In the dashboard CPU and Mem shows zero and all docker commands do not respond or wake the engine. Only after a restart of the engine it starts to respond, however internally docker desktop hit an internal error while entering resource saver mode, so what is the reason for the issue and how to fix it
10 min
Edited:29-09-2024
docker does not seem to recover from resource saver mode. In the dashboard CPU and Mem shows zero and all docker commands do not respond or wake the engine. Only after a restart of the engine it starts to respond, however internally docker desktop hit an internal error while entering resource saver mode, so what is the reason for the issue and how to fix it
Docker Resource Saver Mode is a feature designed to optimize resource usage in Docker Desktop by adjusting the resource allocations for running containers. It helps reduce the overhead on your system, especially useful for users running multiple containers or those on machines with limited resources. Here’s an overview of how it works and its benefits:
Customizable Settings
Automatic Scaling
Improved Performance
Optimized Resource Allocation
1- Open Docker Desktop: Launch Docker Desktop on your machine.
2- Access Settings: and Click on the gear icon in the top-right corner of the Docker Desktop interface to open the settings.
3- Go to Resources: Navigate to the "Resources" section. Here, you will see options to configure the CPU, Memory, and Disk space
4- Adjust Resource Limits: Set the desired limits for CPU and memory allocation according to your needs. You can also adjust disk image size to limit the amount of disk space Docker uses.
5- Enable Resource Saver Mode:If available, toggle on the Resource Saver Mode option.
6- Apply Changes: Save the changes and restart Docker if prompted.
The issue is that some commands like docker compose up will make the docker wont wake up from resource saver mode
Quick solution: you can disable resource saver mode via the Docker Desktop settings menu, under Settings -> Resources.
Docker released a bug fix for the command docker compose up became unresponsive when the recover mode is enabled
Upgrade the Docker Desktop application to the version 4.34.2, and this should fix the issue, For Windows / Mac
Open Docker Desktop: Launch the Docker Desktop application.
Check for Updates:
Docker Desktop is primarily available for Windows and macOS. However, if you're using Docker Engine on a Linux system, you can upgrade Docker using the terminal:
1. sudo apt-get update
1. sudo apt-get install --only-upgrade docker-ce docker-ce-cli containerd.io
You can find and configure Resource Saver Mode directly within the Docker Desktop application under the Resources settings. If you're using Docker in a different environment, such as on a server without a graphical interface, resource management would typically be done via command-line settings and configurations rather than a dedicated "Resource Saver Mode."
14-10-2024
This article offers a detailed guide on installing and configuring IPTables on an Ubuntu VPS. IPTables is a powerful firewall tool that helps secure your server by controlling inbound and outbound traffic. Learn how to set up rules for traffic filtering, configure basic security policies, and apply custom rules to protect your VPS.
IPtables
security
12 min
This article offers a comprehensive guide on installing and configuring ModSecurity, a powerful web application firewall (WAF), on an Ubuntu VPS. Learn how to secure your server by filtering and monitoring HTTP requests, set up ModSecurity with Nginx or Apache, and apply rules to protect against common web attacks.
Modsecurity
security
10 min
14-10-2024
This article provides a comprehensive guide on installing and configuring PHP-FPM (FastCGI Process Manager) on an Ubuntu VPS. Learn how to optimize PHP performance for your web applications by configuring PHP-FPM with Nginx or Apache, managing pools, and fine-tuning settings for efficient processing of PHP scripts.
PHP-FPM
speed
optimise
12 min