Docker Community Forums

Share and learn in the Docker community.

Problem with getting UCP + Interlock for load balancing working


(Qadinc) #1

Hi,

I’m following the example here: http://success.docker.com/Datacenter/Apply/Reference_Architecture%3A_Service_Discovery_and_Load-Balancing_with_Docker_Universal_Control_Plane_(UCP)

Part 3A. Interlock and NGINX/NGINX+

When I run the following on the UCP controller::

docker exec -ti ucp-kv curl --cacert /etc/docker/ssl/ca.pem --cert /etc/docker/ssl/cert.pem --key /etc/docker/ssl/key.pem https://:12379/v2/keys/interlock/v1/config -XPUT -d value='listenAddr = “:8080” dockerURL = “tcp://:2376” tlsCaCert = “/certs/ca.pem” tlsCert = “/certs/cert.pem” tlsKey = “/certs/key.pem”

I get the > at the prompt and enter the Extensions and hit return and get the following error:

rpc error: code = 2 desc = “oci runtime error: exec failed: exec: “curl”: executable file not found in $PATH”

I looked in the ucp-kv container and indeed curl is not installed.

Is this document for an earlier version of UCP or am I missing something?

Thanks


(Nicolaka) #2

@qadinc correct this document is for an earlier version of UCP where curl was installed in previous versions of etcd container. However what I recommend is taking a look at https://github.com/ehazlett/interlock/tree/master/docs/examples/nginx-ucp . It should be a very clean example that works just fine with UCP. Thanks!


(Qadinc) #3

Thank you for the info, I will give it a shot