I’m running test with my docker container under circleci, one of my services in docker container will use
9010 port. When I mount the docker container with
docker run -d --name mycontainer -p 9010:9010 my/dockerimage
and then go inside container before launch my service, with cmd
netstat -ap | grep :9010
root@940963d# netstat -ap | grep :9010 tcp6 0 0 [::]:9010 [::]:* LISTEN -
the port is occupied, thus my service cannot run. Tested with other port with my service, it runs ok. Any inside for such issue ? Thank you in advance.