Categories
Open Source

Docker performance on Apple M1

We’ve been using Docker and localstack to create fully isolated local dev environments on our laptops. My work machine is a high-spec’d Apple M1 Macbook Air but Docker was having lots of issues with networking being overloaded by requests resulting in frustrating flaky behaviour and timeouts.

Turns out it is this issue and this comment solved the issue for me:

  1. Turn on “Experimental Feature” > “Use the new Virtualization framework”
  2. Edit “/Users/$USER/Library/Group Containers/group.com.docker/settings.json”
  "useVpnkit": false,

  1. Restart Docker Daemon

In case anyone is using Docker on M1 Apple hardware and having networking issues I recommend you try that workaround until the issue is resolved by Docker.