What is com.docker.backend on Mac? Docker CPU use
Safe to quit? SometimesMade by Dockercom.docker.backend
com.docker.backend is Docker Desktop's backend on Mac. It carries container network traffic and more. Why it uses CPU and memory, and how to tame it.
com.docker.backend is the main background process of Docker Desktop on a Mac. It is made by Docker, it is not a virus when it comes with Docker Desktop, and when it uses a lot of CPU it is usually carrying work for your running containers.
Containers on a Mac run inside a Linux virtual machine. The backend is the bridge between that machine and macOS, so container activity often shows up under its name.
What com.docker.backend does
Docker's networking documentation explains that on Mac the backend process handles network translation between the host and the Linux VM. In its words, all outbound container network traffic originates from the com.docker.backend process. For published ports, the backend listens on the Mac's port and forwards connections into the VM. On Mac it also handles file sharing when you use gRPC FUSE, while with virtiofs Apple's Virtualization framework handles file access instead.
Docker's permission requirements page adds that the backend talks to a separate privileged helper, com.docker.vmnetd, which launchd starts and runs in the background.
So high CPU from com.docker.backend is often really your containers' traffic, not Docker misbehaving.
Is com.docker.backend a virus?
No, provided it belongs to Docker Desktop. It runs from inside the Docker app at /Applications/Docker.app. To see the path of every Docker process, use Terminal. This only reads:
ps -Ao pid,%cpu,rss,comm | grep -i docker
The com.docker.backend line should point inside /Applications/Docker.app. Then check the app's signature:
codesign -dvv /Applications/Docker.app 2>&1 | grep -E "Identifier|Authority|TeamIdentifier"
The first Authority line should read Developer ID Application followed by Docker Inc, and the chain should end at Apple Root CA. Docker Desktop was not installed on the Mac we checked, so we have not shown its exact output. A com.docker.backend running from anywhere other than Docker's app bundle is not Docker's; the guide to checking a Mac for malware explains what to do.
Why com.docker.backend uses high CPU or memory
- Container network traffic, such as a container downloading images or dependencies, or a service handling many requests through a published port.
- File sharing between the Mac and containers, with setups where the backend handles it, especially when a container watches a large project folder.
- Containers left running that keep doing work in the background.
- The VM's own size. Docker's settings documentation says the VM's memory limit defaults to 50% of the Mac's memory, with 1 GB of swap. That memory is reserved for the VM rather than the backend process, but it adds to memory pressure.
What is normal
With containers busy, a few percent to much more CPU is normal. With no containers running, Docker's Resource Saver page says Docker Desktop shuts the VM down after a period of inactivity, 5 minutes by default, and uses minimal system resources while idle. High CPU with nothing running is not normal.
How to tame com.docker.backend
- See which containers are running. In Docker Desktop's Containers view, or with
docker psin Terminal, which only lists them. - Stop what you are not using.
docker stopfollowed by the container name, or the Stop button in Docker Desktop. - Keep Resource Saver on. It is on by default; check it in Docker Desktop's Settings > Resources. Docker says it can free 2 GB or more of CPU and memory when idle.
- Set resource limits. In Settings > Resources, lower the CPU and memory limits to what your projects need.
- Reduce file-sharing load. Share only the project folders containers need, rather than your whole home folder.
- Update Docker Desktop, then quit and reopen it if the backend seems stuck.
- Quit Docker Desktop when you are not developing. Your images and volumes stay on disk.
What not to do
- Do not delete Docker's helper files by hand. Use Docker Desktop's own uninstall steps, so the privileged helper and launch daemon are removed too.
- Do not force quit com.docker.backend mid-work. Running containers stop abruptly. Quit Docker Desktop from its menu instead.
- Do not delete Docker's disk image file by hand to free space. The guide to Docker disk space on Mac explains the safe way.
How to see com.docker.backend in Activity Monitor
- Open Activity Monitor from Applications > Utilities.
- Type docker in the search field to see com.docker.backend and Docker's other processes.
- Sort by % CPU on the CPU tab, or Memory on the Memory tab.
- Check the Network tab, where container traffic is counted under the backend.
- Double-click it; Open Files and Ports shows its path inside Docker.app.
If you also run dev servers on the Mac itself, see node. Busy file sharing can also wake Spotlight's mds_stores.
How Headroom helps
Because com.docker.backend lives inside Docker.app, Headroom's Speed screen counts it as part of Docker, adding its processes together into one row with total CPU and memory, beside your other apps. If Docker runs its virtual machine through Apple's Virtualization framework, the VM's own memory may be counted under an Apple process, which Headroom leaves out, but memory pressure on the same screen still reflects it. Quit closes Docker Desktop normally. The Speed screen is free.
Download Headroom, read about the Mac performance monitor, or see the price.
Questions
What is com.docker.backend?
It is Docker Desktop's backend process on Mac. Docker's documentation says it handles network traffic between your Mac and the Linux virtual machine that runs your containers, among other jobs.
Why is com.docker.backend using high CPU?
Your containers are busy, especially with network traffic or published ports, or with file sharing in setups where the backend handles it. Idle containers that keep doing background work count too.
Is com.docker.backend a virus?
No, if it is part of Docker Desktop. It runs from inside /Applications/Docker.app, and the app should be signed with a Developer ID certificate from Docker Inc.
How do I stop Docker using CPU and memory when I'm not using it?
Stop containers you are not using, keep Resource Saver on so Docker shuts its virtual machine down when idle, lower the CPU and memory limits in Settings, or quit Docker Desktop.