Following the quick start guide and the agent/cattle container can’t see the rancher/host. I’m guessing there’s an issue with DNS between the container and looping back to the other container on port 8080? It works when I spin it up locally on my own virtual machine lab in the office using the hostname/address rancher.local:8080 .
Bone-stock brand new and up to date Ubuntu 14.04. Used Docker’s getting started guide: https://docs.docker.com/engine/installation/linux/ubuntulinux/
UFW is enabled and forwarding is turned on: https://docs.docker.com/engine/installation/linux/ubuntulinux/#/enable-ufw-forwarding
Followed the Rancher getting started guide: h ttp://rancher.com/getting-started/
Cool it’s up, UI works etc:
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.5.5-x86_64-linode69 x86_64)
* Documentation: https://help.ubuntu.com/ hadlock@argonaut:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6fc3c451c433 rancher/server "/usr/bin/s6-svscan /" 3 days ago Up 2 days 3306/tcp, 0.0.0.0:8080->8080/tcp kickass_bardeen
Step 3 Add Hosts:
sudo docker run -e CATTLE_AGENT_IP="123.456.789.000" -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.0.2 http://domainname.us:8080/v1/scripts/70998A3EDF502798141B:1468742400000:UhA4SpXtlp817ExkmGMMYPXt3yS
output looks good:
[psudo] password for hadlock: 50d2a19ee43a312da7b822468779472add387312154a4f45ce025351f64d9d27 hadlock@argonaut:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 50d2a19ee43a rancher/agent:v1.0.2 "/run.sh http://domai" 6 seconds ago Up 5 seconds jolly_hopper 6fc3c451c433 rancher/server "/usr/bin/s6-svscan /" 3 days ago Up 2 days 3306/tcp, 0.0.0.0:8080->8080/tcp kickass_bardeen
Hmm it’s not showing up in the hosts… let’s look at the logs…
hadlock@argonaut:~$ docker logs -f 50d2a19ee43a
INFO: Running Agent Registration Process, CATTLE_URL=http://domainname.us:8080/v1 INFO: Checking for Docker version >= 1.6.0 INFO: Found Server version: 1.11.2 INFO: docker version: Client version: 1.6.0 INFO: docker version: Client API version: 1.18 INFO: docker version: Go version (client): go1.4.2 INFO: docker version: Git commit (client): 4749651 INFO: docker version: OS/Arch (client): linux/amd64 INFO: docker version: Server version: 1.11.2 INFO: docker version: Server API version: 1.23 INFO: docker version: Go version (server): go1.5.4 INFO: docker version: Git commit (server): b9f10c9 INFO: docker version: OS/Arch (server): linux/amd64 INFO: docker info: Containers: 17 INFO: docker info: Images: 4 INFO: docker info: Storage Driver: devicemapper INFO: docker info: Pool Name: docker-8:0-257306-pool INFO: docker info: Pool Blocksize: 65.54 kB INFO: docker info: Base Device Size: 10.74 GB INFO: docker info: Backing Filesystem: ext4 INFO: docker info: Data file: /dev/loop0 INFO: docker info: Metadata file: /dev/loop1 INFO: docker info: Data Space Used: 2.146 GB INFO: docker info: Data Space Total: 107.4 GB INFO: docker info: Data Space Available: 16.17 GB INFO: docker info: Metadata Space Used: 3.465 MB INFO: docker info: Metadata Space Total: 2.147 GB INFO: docker info: Metadata Space Available: 2.144 GB INFO: docker info: Udev Sync Supported: true INFO: docker info: Deferred Removal Enabled: false INFO: docker info: Deferred Deletion Enabled: false INFO: docker info: Deferred Deleted Device Count: 0 INFO: docker info: Data loop file: /var/lib/docker/devicemapper/devicemapper/data INFO: docker info: Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata INFO: docker info: Library Version: 1.02.77 (2012-10-15) INFO: docker info: Execution Driver: INFO: docker info: Kernel Version: 4.5.5-x86_64-linode69 INFO: docker info: Operating System: Ubuntu 14.04.4 LTS INFO: docker info: CPUs: 1 INFO: docker info: Total Memory: 1.953 GiB INFO: docker info: Name: argonaut.domainname.us INFO: docker info: ID: IOXD:WPMY:RK5G:ZHGV:ZORI:BJAT:VXWV:DNIW:ADK7:MSXB:5XKE:XBOF INFO: docker info: Http Proxy: INFO: docker info: Https Proxy: INFO: docker info: No Proxy: WARNING: No swap limit support INFO: Attempting to connect to: http://domainname.us:8080/v1 ERROR: http://domainname.us:8080/v1 is not accessible ^C hadlock@argonaut:~$ ^C