Docker Desktop 4.22: Resource Saver, Compose ‘include’, and Enhanced RBAC Functionality | Docker
Docker Desktop 4.22 is now available and includes a new Resource Saver feature that massively reduces idle memory and CPU utilization to ensure efficient use of your machine’s resources. Docker Compose include
allows splitting complex Compose projects into subprojects to make it easier to modularize complex applications into sub-Compose files. Role-based access control (RBAC) has also been enhanced with the addition of an Editor role to allow admins to delegate repository management tasks.
Resource Saver
In 4.22 we have added a new Resource Saver feature for Mac and Windows which detects when Docker Desktop is not running containers and massively reduces its memory and CPU footprint (WSL has CPU optimizations only at this stage). When Resource Saver detects that Docker Desktop is idle without any active containers for a duration of 30 seconds, it automatically reduces the memory and CPU footprint. This optimizes Docker Desktop for your system and helps to free up resources on your machine for other tasks. When a container needs resources, they’re quickly allocated on demand.
To see this feature in action, start Docker Desktop and leave it idle for 30 seconds with no containers running. A leaf will appear over the whale icon in your Docker Desktop menu and the sidebar of the Docker Desktop dashboard, indicating that Resource Saver mode is activated.
Previously, Docker Desktop introduced some CPU optimizations of Resource Saver, which, at the time of writing, are already saving up to a staggering 38,500 CPU hours every single day across all Docker Desktop users.
Split complex Compose projects into multiple subprojects with ‘include’
If you’re working with complex applications, use the new include
section in your Compose file to split your project into manageable subprojects. Compared to merging files with CLI flags or using extends
to share common attributes of a single service from another file, include
loads external Compose files as self-contained building blocks, making it easier to collaborate on services across teams and share common dependency configurations within your organization.
For more on how you can try out this feature, read “Improve Docker Compose Modularity with `include`” or refer to the documentation.
Editor role available for organizations
With the addition of the Editor role, admins can provision users to manage repositories without full administrator privileges. Users assigned to the Editor role can:
- Create public and private repositories
- Pull, push, view, edit, and delete a repository
- Update repository description
- Assign team permissions to repos
- Update scanning settings
- Delete tags
- Add webhooks
- Change repo visibility settings
For further details on roles and permissions, refer to the documentation.
Organization owners can assign the Editor role to a member of their organization in either Docker Hub or Docker Admin.
Conclusion
Upgrade now to explore what’s new in the 4.22 release of Docker Desktop. Do you have feedback? Leave feedback on our public GitHub roadmap and let us know what else you’d like to see in upcoming releases.