The -p flag on the docker run command is used to specify which ports from the Docker container should be exposed on which ports in the host machine.
Right now, you’re exposing port 8580 from the Docker container into the porto 8580 of your computer (the host machine). What you want to do instead is expose the port 8080 from the Docker container to the port 8580 of the host machine.