dstapp/docker-ddns

Help for address already in use

byman64 opened this issue · 2 comments

UPDATE - FIXED
4/9/2022 15:55
FIXED: I used this guide to get free the 53 port
https://www.linuxuprising.com/2020/07/ubuntu-how-to-free-up-port-53-used-by.html

ORIGINAL REQUEST
I think it's not a real issue so I am asking for help.
I have a vps used only for openVPN. I have done all installation steps and required sucessufully except the error that I got on make deploy: 0.0.0.0:53: bind: address already in use.

I dont think openvpn needs that, how I can fix it?

/etc/systemd/resolved.conf
[Resolve] DNS=8.8.8.8 8.8.4.4 Domains=com

Result of make deploy command
`Successfully tagged davd/docker-ddns:latest
docker run -it -d -p 8080:8080 -p 53:53 -p 53:53/udp --env-file envfile --name=dyndns davd/docker-ddns:latest
6b89568fb6ad8fb5d83c8d0814600d58cac31e4878a71e81e6a18b70553de70a
docker: Error response from daemon: driver failed programming external connectivity on endpoint dyndns (bc19640c59221eb4657bcb6213dd78a7f1b5d9733d7949aec6b6f0d6942ebcfd): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use.
make: *** [Makefile:40: deploy] Error 125

root@qool7:~/docker-ddns# netstat -plunt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 1236429/systemd-res
udp 0 0 127.0.0.53:53 0.0.0.0:* 1236429/systemd-res
`

UPDATE - FIXED
4/9/2022 16:20

I fixed removing the docker in error:
docker rm "6b89568fb6ad8fb5d83c8d0814600d58cac31e4878a71e81e6a18b70553de70a"

ORIGINAL REQUEST
Here again as you can see I fixed the previous issue with "bind: address already in use."
lsof -i :53 now show an empty result.

I need to performe the last step 16/16.
When I execute "make deploy" I get the following error message:
Step 16/16 : CMD ["sh", "-c", "/root/setup.sh ; service bind9 start ; /root/dyndns"] ---> Using cache ---> a6aab2b09f7c Successfully built a6aab2b09f7c Successfully tagged davd/docker-ddns:latest docker run -it -d -p 8080:8080 -p 53:53 -p 53:53/udp --env-file envfile --name=dyndns davd/docker-ddns:latest docker: Error response from daemon: Conflict. The container name "/dyndns" is already in use by container "6b89568fb6ad8fb5d83c8d0814600d58cac31e4878a71e81e6a18b70553de70a". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'. make: *** [Makefile:40: deploy] Error 125
Any suggest?

Now I will try next step...the issue about port 53 in use fixed and also the final "make deploy".