🐳 Containers
Keep your Mac awake while Docker is running
A multi-stage build can churn for ten minutes pulling layers and compiling, and a backend container you are testing against needs to stay up for hours. If macOS sleeps mid-build or drops your running stack, you lose the work. AwakeMate keeps the Mac awake while docker is active - but only once you opt in.
Free 14-day trial · one-time $39.99 · no telemetry · macOS 13+
When your Mac sleeps mid-Docker
Docker is two very different workloads. A build hammers the CPU then stops; a running container mostly idles between requests while still needing to stay alive. macOS can sleep during either one - pausing a build halfway, or tearing down the local stack you are pointing your app at - because nothing is happening at the keyboard.
AwakeMate keeps it awake while Docker runs
AwakeMate recognises Docker by its process name, docker, read from the local process list on-device. Because a Docker daemon often runs all day, AwakeMate keeps Docker off by default so a background daemon never silently holds your Mac awake - you enable it when you actually want it.
Detected process: docker
Tip: leave "Sleep when tools go idle" off
Leave "Sleep when tools go idle" OFF for Docker. A long-running container spends most of its life idling between requests, so idle-sleep would read that quiet as "done" and let the Mac sleep - taking your stack down with it. With it off, AwakeMate keeps the Mac awake for the whole time Docker runs. The build-versus-run nuance matters here: a build is busy and short, a container is quiet and long, and only the always-on behaviour covers both.
Get the most out of it
- Enable Docker in AwakeMate only while you need the daemon up - the opt-in switch means an all-day background daemon won't quietly keep your Mac from sleeping.
- For a long compose stack you are developing against, keep idle-sleep off so a quiet container between requests doesn't get mistaken for a finished job.
More questions about Dockertap to expand
Why is Docker off by default when other tools are on?
Because a Docker daemon frequently runs in the background all day. If it were on by default it would hold your Mac awake constantly. AwakeMate makes Docker opt-in so you decide when keeping awake is worth it.
Should I turn on "Sleep when tools go idle" for Docker?
Usually no. A running container idles between requests, and idle-sleep would treat that quiet as a finished job and sleep the Mac - dropping your stack. Leave it off so AwakeMate stays awake the whole time docker runs.
Does AwakeMate touch my containers or images?
Never. It reads only the short process name docker on-device, with no telemetry. It cannot see your containers, images, build context or compose files.
What's the best way to keep my Mac awake while a Docker build or container runs?
Switch Docker on in AwakeMate - it's opt-in because a daemon can sit in the background all day - and it then keeps the Mac awake automatically whenever docker is active. A multi-stage build won't stall halfway and a compose stack you're developing against won't be torn down by a sleep cycle. Leave idle-sleep off so a container that's quietly idling between requests isn't mistaken for finished work.
Why not just set Energy Saver sleep to Never while I use Docker?
You can, but "Never" is all-or-nothing and easy to forget. It holds your Mac awake for everything, every day, until you remember to switch it back, and it changes a saved setting rather than asserting per task. AwakeMate keeps the Mac awake only while docker is running, shows that state in the notch, and never touches your Energy Saver preferences, so you don't end up with a machine that won't sleep long after the container is gone.
Why does my Mac sleep and drop my running containers?
A running container mostly idles between requests, so even though Docker is alive there's nothing happening at the keyboard, and macOS sleeps the Mac and takes your stack down with it. AwakeMate holds the Mac awake (lid open) for the whole time docker runs, using the same idle-sleep assertion as caffeinate and changing no energy settings. If you're leaving a stack up overnight, run on power or set the low-battery cutoff so it doesn't keep going down to an empty battery.
Will it keep my Mac awake for Docker with the lid closed, even on battery?
Yes. Turn on "Keep awake with the lid closed" in Settings - Options and approve the one-time helper; AwakeMate then keeps the Mac awake with the lid shut while Docker runs, and dims the built-in screen so it is not draining the battery under the lid. It works on most Apple Silicon Macs (Apple forces sleep on some, so close your lid once to confirm). It works on battery too, but real work drains it faster, so keep it on power for long runs. See how it works.