sudo docker run -e CATTLE_AGENT_IP=1.1.1.1 -d --privileged -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.7.9 http://1.1.1.1:18080/v1/scripts/9F5A2AEB88315EAD751B:1435399200000:yFOQgGD6tgvNrJooXZrqDzhuOM
...
INFO: Starting agent for A42A7DA036C5A70C5AE6INFO: Access Key: A42A7DA036C5A70C5AE6INFO: Config URL: http://1.1.1.1:18080/v1INFO: Storage URL: http://1.1.1.1:18080/v1INFO: API URL: http://1.1.1.1:18080/v1INFO: IP: 1.1.1.1INFO: Port:INFO: Required Image: rancher/agent:v0.7.9INFO: Current Image: rancher/agent:v0.7.9INFO: Using image rancher/agent:v0.7.9INFO: Downloading agent http://1.1.1.1:18080/v1/configcontent/configscripts{"id":"c9de6c74-aa72-4240-adb3-3bb4983d997e","type":"error","links":{},"actions":{},"status":401,"code":"Unauthorized","message":"Unauthorized","detail":null}gzip: stdin: not in gzip formattar: Child returned status 1tar: Error is not recoverable: exiting now