docker compose build fails with IO timeout

Viewed 9482

I have installed WSL 2.0 and my version of docker is

Client:
 Cloud integration: 1.0.17
 Version:           20.10.7
 API version:       1.41
 Go version:        go1.16.4
 Git commit:        f0df350
 Built:             Wed Jun  2 12:00:56 2021
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true

When I try to do a build of an image I get the following error

Error response from daemon: i/o timeout
1 Answers
  1. Open "Window Security"
  2. Open "App & Browser control"
  3. Click "Exploit protection settings" at the bottom
  4. Switch to "Program settings" tab
  5. Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it
  6. Click "Edit"
  7. Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings"
  8. Delete all files from C:\Users<name>\AppData\Roaming\Docker
  9. Start vmcompute from powershell "net start vmcompute"

For more info: https://github.com/docker/for-win/issues/4413

Related