Docker Port in Use Error

Question:

While trying to provision a Docker image on my new Mac (Catalina 10.15.5) for the first time, I get the below error:

failed MSpanList_Insert 0x1e3000 0x1cd6722a8ec 0x0 
fatal error: MSpanList_Insert 
runtime stack: 
runtime.throw(0x19816b)

The image worked fine on another (older) Mac, so it wasn't about the image. What should I do?

Answer:

First, try reinstalling and updating Vagrant and VirtualBox. You may get the below error instead of the original error:

Stderr: /usr/local/bin/docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:80: bind: address already in use.

If that happens, you'll need to kill the process running on the Port in use (in this case Port 80) by shutting down the server daemon:

sudo /usr/sbin/apachectl stop

Then you should be able to rerun the provisioning by using:

vagrant provision

And it should now work as expected.


‹Back

FAQs

Still need help? Contact Us Contact Us