dockerdocker-cloud

Error: duplicated outer port


I've been following this tutorial on docker cloud: https://docs.docker.com/docker-cloud/apps/load-balance-hello-world/

I've been getting errors when trying to expose port 80 using haproxy.

DEFAULT

default

when i check port 80, the ports move and port 1936 gets checked automatically

when i check port 80, the ports move and port 1936 gets checked automatically

try unpublishing 1936

try unpublishing 1936

launch, duplicated outer port launch, duplicated outer port

unpublish 1936

unpublish 1936

same error

same error


Solution

  • I wasn't able to figure this out using the UI. I believe this is a bug that was introduced recently. But as somebody suggested on Docker forums, you can use the CLI instead. I was able to create a new proxy on Cloud with this command

    docker-cloud service create -n haproxy --autorestart ON_FAILURE --role global -p 80:80 --link-service demo-blue:demo-blue dockercloud/haproxy
    docker-lcoud service start <UUID>
    

    You should be able to do something similar as well.