CentOS 7
Docker version 20.10.6, build 370c289
I try to run image like this:
docker run -d --name sonarqube -p 9000:9000 -v sonarqube-conf:/opt/sonarqube/conf -v sonarqube-data:/opt/sonarqube/data -v sonarqube-logs:/opt/sonarqube/logs -v sonarqube-extensions:/opt/sonarqube/extensions sonarqube
But get error:
docker: Error response from daemon: driver failed programming external connectivity on endpoint sonarqube (asfsfdsfdsfdsfdsfdsfds): Error starting userland proxy: listen tcp6 [::]:9000: socket: address family not supported by protocol.
3
Answers
I found solution.
Install Docker ver 20.10.5
And now problem is gone.
This blog post discusses the problem and solution:
In your case, this is the solution which worked for a container of mine where I was seeing the same issue. Replace the host port with the host LAN IPv4 address (I used 172.16.18.93 in the following snippet) and port:
so for those that run in to this issue, the thing that solved it for me was to update docker
reviewing the documentation, just grab the latest release of docker. https://docs.docker.com/engine/install/ubuntu/
i.e