Skip to content

Instantly share code, notes, and snippets.

@crossworth
Last active November 4, 2019 17:23
Show Gist options
  • Save crossworth/1206f077c811fb47b113cf5d8f29693e to your computer and use it in GitHub Desktop.
Save crossworth/1206f077c811fb47b113cf5d8f29693e to your computer and use it in GitHub Desktop.
Docker freeze/stuck
com.docker.driver.amd64-linux.log
Not working log:
time="2019-11-04T12:47:37-03:00" level=info msg="Ports are not available: unable to list exposed ports: Get http://unix/forwards/list: net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
time="2019-11-04T12:47:37-03:00" level=info msg="Cancel connection..."
Working log:
time="2019-11-04T13:33:35-03:00" level=info msg="proxy >> GET /forwards/list\n"
The problem is that VPNKit cannot list the ports.
https://github.com/moby/vpnkit/blob/master/go/pkg/vpnkit/http.go#L18
I don't know why it freezes and dont show any message about a port not been used.
In my case I had nginx running on port 80 and a service used port 80, causing the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment