Hi there,
I have installed Rancher Server (10.1.4.196) on a VM and now I’m trying to add the first host (10.1.4.191).
Unfortunately, when I run
sudo docker run -e CATTLE_AGENT_IP=“10.1.4.191” -e CATTLE_HOST_LABELS=‘app=test’ --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.2 http://10.1.4.196:8080/v1/scripts/61E07CDEF63187204A98:1483142400000:Xb9cPXFTAGWYj4NRsNUtMTZs54
I get
ERROR: http://10.1.4.196:8080/v1 is not accessible
However if I run
wget http://10.1.4.196:8080/v1/scripts/61E07CDEF63187204A98:1483142400000:Xb9cPXFTAGWYj4NRsNUtMTZs54
I get
–2017-06-28 10:39:20-- http://10.1.4.196:8080/v1/scripts/61E07CDEF63187204A98:1483142400000:Xb9cPXFTAGWYj4NRsNUtMTZs54
Connecting to 10.1.4.196:8080… connected.
HTTP request sent, awaiting response… 200 OK
Length: 262 [text/plain]
Saving to: ‘61E07CDEF63187204A98:1483142400000:Xb9cPXFTAGWYj4NRsNUtMTZs54’
61E07CDEF63187204A98:1483142400000:Xb9c 100%[==============================================================================>] 262 --.-KB/s in 0s
2017-06-28 10:39:20 (31.6 MB/s) - ‘61E07CDEF63187204A98:1483142400000:Xb9cPXFTAGWYj4NRsNUtMTZs54’ saved [262/262]
Am I missing anything here?
Thanks.