Troubleshooting binding service 'already in use' error in docker

This article helps troubleshoot the binding server “Address already in use” error that could be encountered while using Docker.

LAST TESTED ON CHECKMK 2.2.0P1


Table of Contents

Problem

Error when starting docker that the port is already in use.

[ ] Binding service [live-tls]
[ ] Listening file descriptor created (FD=8)
[ ] Setting accept socket options (FD=8)
[ ] Option SO REUSEADDR set on accept socket
[.] Binding service [live-tls] to localhost:/omd/sites/mysite/tmp/run/live-tls: Address already in use (98)
[!] Binding service [live-tls] failed
[ ] Unbinding service [live-tls]
[ ] Service [live-tls] closed
[ ] Deallocating deployed section defaults
[ ] Deallocating section [live-tls]
[ ] Initializing inetd mode configuration
Starting stunnel...Error
Starting xinetd...OK
Initlalizinq Crontab...0K
### STARTING CRON


Solution

  1. The site user must delete the reported file within the sites ~/tmp/ folder:

    OMD[mysite]~# rm -rf ~/tmp/*

    .

  2. Try to start the docker container again, it should start without issue.