aj-may / dotdocker

🐳 A utility to help setup a docker development environment with host based routing
MIT License
40 stars 10 forks source link

bind: address already in use / HTTP code 500 #34

Closed magoon closed 4 years ago

magoon commented 4 years ago

Problem: Starting dotdocker-dnsmasq step fails with: (HTTP code 500) server error - driver failed progarmming extenral connectivity on endpoint dotdocker-dnsmasq" ... "Error starting userland proxy: listen tcp 0.0.0.0:53: bind: address already in use

Reproduced by running dotdocker start

Expected behavior is that dotdocker will start.

See attached screenshot.

Screen Shot 2020-01-07 at 11 33 20 AM

Docker and dotdocker have both been stopped and restarted. dotdocker -V returns 1.4.2. dnscrypt is bound to port 53.

magoon commented 4 years ago

Now it's working after the latest restarting of docker, dotdocker restart, and sudo dotdocker start

magoon commented 4 years ago

Resolve this problem by:

  1. installing a new version (1.4.2) that doesn't bind to port 53;
  2. running dotdocker stop after the new version is installed (because this will remove the old container that was left dangling. note: the older version wouldn't have removed the container with this command, so you must do it /after/ installing the newer version);
  3. run dotdocker start