I want to run a spring-boot microservice on port number 443. I am creating this service using docker command
docker service create -p 443:8443 somerepo/someorg/some-service:v0.1
When I fire this command service goes fine, but DTR and UCP go down. I don't have a complete idea on it but just aware of docker UCP controller run on 443. My Question is
Thanks in Advance.
You should check whether port 443 is currently occupied by DTR or UCP, apparently both default to 443.
In case of UCP, according to the reference and this discussion, it is possible to change the UCP port by using the --controller-port flag during installation. This can also be configured in the web interface under Admin Settings -> Cluster Configuration -> Controller Port.
As for DTR, there is the flag --replica-https-port to also move it away from 443.
Once you have moved the competing services, there is nothing that should prevent you from having a container listen to port 443.