Are you sure this is not a container you’ve got running, that publishes this port? My Mac (M1) yields no results for that command. Desktop 4.9.1 (81317). Same for 4.10.1 (82475).
I tried too and I agree with @avbentem so I just want to share some ideas why you could see that port 8080 is used even if you run docker ps or docker ps -a and you can’t see any containers.
If you run Kubernetes on Docker Desktop, Kubernetes containers are not visible by default. However, Kubernetes itself will not use port 8080 but some services could. If you want to enable showing Kubernetes containers, go to the Kubernetes settings and aneble “Show system containers (advanced)”. It would probably not help since you could just list kubernetes services and those are not visible in the list of containers, but at least you know what containers are running on your machine.
Extensions can also use ports. For example when you install “Portainer”, itt will use port 8000, 9000 and 9443 on the local IP 127.0.0.1. Extension containers are also hidden by default if I remember correctly. If you want to see the extension containers, go the the Extensions settings below “Software updates” and “Kubernetes” and enable “Show Docker Extensions system containers”
Please, read all the suggestions and tell us what you checked and made sure that is not the cause of the issue. For example what I wrote in my previous comment in this topic and whihc I also partially wrote your new topic:
To avoid talking about the same thing in two different topics, let’s continue in yours.
I also discovered that having Docker Swarm enabled may create issues. I previously had a local swarm with the port taken for the service. The service was no longer working, but the Docker was still in Swarm mode – and I guess still holding the port for some reason. Once I “left” the Swarm and restarted the Docker – all cleaned up:
docker swarm leave --force
# and now restart docker