Docker Community Forums

Share and learn in the Docker community.

Deploy DDC Template on Azure


(Wwiii) #1

Thanks for making the Docker Data Center demo available.

I’m deploying Docker Datacenter in Azure (South Central US) using the template in the Docker Store.

I went through the documentation here without much trouble at all but it appears to be broken.

On the first ctrl node I have the following containers running:

root@ucpclus0-ucpctrl:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4fafb58ec64a ehazlett/interlock:1.2.0 “/bin/interlock -D ru” About an hour ago Up About an hour 0.0.0.0:8080->8080/tcp pensive_ramanujan
9204aac3fbde docker/ucp-controller:1.1.0 “/bin/controller serv” About an hour ago Up About an hour 0.0.0.0:443->8080/tcp ucp-controller
aa514c2cc221 docker/ucp-auth:1.1.0 "/usr/local/bin/enzi " About an hour ago Up About an hour 0.0.0.0:12386->4443/tcp ucp-auth-worker
43f3643c2888 docker/ucp-auth:1.1.0 "/usr/local/bin/enzi " About an hour ago Up About an hour 0.0.0.0:12385->4443/tcp ucp-auth-api
c2fb0c45f61a docker/ucp-auth-store:1.1.0 “/usr/local/bin/rethi” About an hour ago Up About an hour 0.0.0.0:12383-12384->12383-12384/tcp ucp-auth-store
dc34bbe6a931 docker/ucp-cfssl:1.1.0 “/bin/cfssl serve -ad” About an hour ago Up About an hour 8888/tcp, 0.0.0.0:12381->12381/tcp ucp-cluster-root-ca
032f7e77ec3f docker/ucp-cfssl:1.1.0 “/bin/cfssl serve -ad” About an hour ago Up About an hour 8888/tcp, 0.0.0.0:12382->12382/tcp ucp-client-root-ca
a3f1462a5966 docker/ucp-swarm:1.1.0 “/swarm manage --tlsv” About an hour ago Up About an hour 0.0.0.0:2376->2375/tcp ucp-swarm-manager
d8b3c5521e8d docker/ucp-swarm:1.1.0 “/swarm join --discov” About an hour ago Up About an hour 2375/tcp ucp-swarm-join
897dab5773d0 docker/ucp-proxy:1.1.0 “/bin/run” About an hour ago Up About an hour 0.0.0.0:12376->2376/tcp ucp-proxy
9cc800740c92 docker/ucp-etcd:1.1.0 “/bin/etcd --data-dir” About an hour ago Up About an hour 2380/tcp, 4001/tcp, 7001/tcp, 0.0.0.0:12380->12380/tcp, 0.0.0.0:12379->2379/tcp ucp-kv

This looks good and I am in fact able to hit the web page and log in with the admin account.

I don’t see the orange warning signs mentioned in the documentation but I don’t think the other UCP nodes are working properly because when I log to the secondary nodes in the UCP cluster I only see:

root@ucpclus1-ucpctrl:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
125e9774ada4 ehazlett/interlock:1.2.0 “/bin/interlock -D ru” 55 minutes ago Restarting (1) 32 seconds ago 0.0.0.0:8080->8080/tcp tiny_pike

This doesn’t appear to be correct but I moved forward regardless.

I backed up the certificate from the primary node and when I attempt to restore it I get the following error that tells me the node is not a controller which confirms my suspicions that something in the template didn’t work as planned:

root@ucpclus1-ucpctrl:~# docker run --rm -i --name ucp -v /var/run/docker.sock:/var/run/docker.sock docker/ucp restore --root-ca-only --interactive --passphrase “secret” < /tmp/backup.tar
Unable to find image ‘docker/ucp:latest’ locally
latest: Pulling from docker/ucp
d0ca440e8637: Pull complete
61351977b3a5: Pull complete
2885d5b10a43: Pull complete
Digest: sha256:b4fc969bc5d7581e750123cb8f16393e388a101d7a2ef18297815cc6800d161e
Status: Downloaded newer image for docker/ucp:latest
INFO[0000] Your engine version 1.11.1-cs2 is compatible
FATA[0000] This node is not a controller. In the future if you encounter problems on this node, re-run the ‘join’ command to reconnect to the cluster.

Any ideas?

Thanks

~w


(Wwiii) #2

Switched from South Central US to Central US and everything deploys as expected. Going to leave this here in case anyone else runs into the same issue.

~w


(Ushetty) #3

Thanks w! Did you use Docker Datacenter (DDC) in Azure marketplace or tried to configure DDC on Azure from scratch?


(Wwiii) #4

This was using the template in the Azure marketplace. Have since redone everything from scratch without issue.


(Ushetty) #5

Thanks! It’s strange you got error first time deploying in South Central US data center.