1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rancher server & agent on same host setup question

Discussion in 'Docker and Containers' started by nthu9280, Jun 24, 2017.

  1. nthu9280

    nthu9280 Active Member

    Joined:
    Feb 3, 2016
    Messages:
    466
    Likes Received:
    94
    noob question
    I have a Ubuntu 16.04.2 LTS homelab machine. Installed Docker 17.03.1-ce & Rancher 1.6.2.

    Unable to add a host even after specifying IP & different port# (8180) as described here:

    Adding Custom Hosts

    root@ubnt01a:~# sudo docker run -d -e CATTLE_AGENT_IP=10.16.32.195 --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.2 http://ubnt01a:8180/v1/scripts/3AEC16302BB31AD8DFDF:1483142400000:53x92rSjf6A52USiISWlrgUtDU

    The agent starts and stops after few moments. Host doesn't showup in browser GUI. I'm sure I'm missing something. Rancher server runs fine and I can access via browser.
     
    #1
    Last edited: Jun 24, 2017
  2. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    936
    Likes Received:
    87
    How have you installed Rancher Server?
    Also when you add the server as a host, you do not need to specify a custom IP/Port. Just copy the default command on the add-hosts page. I know it says that it wont work, but it does. FWIW I have not gotten it to work any other way.
     
    #2
    Ch33rios and Patrick like this.
  3. Ch33rios

    Ch33rios Member

    Joined:
    Nov 29, 2016
    Messages:
    65
    Likes Received:
    3
    I have experienced the same thing. Its confusing for sure and my frustration with it caused me to really just give up on it for now. I've been managing my small little docker setup of 5 containers on a single host just via the CLI.
     
    #3
  4. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    936
    Likes Received:
    87
    Yea the documentation for Rancher seems to not align well to the current release.

    Lately I have had issues adding additional nodes, which should be a simple process.


    Sent from my iPhone using Tapatalk
     
    #4
Similar Threads: Rancher server
Forum Title Date
Docker and Containers Docker Swarm Management with Rancher - Wow Feb 1, 2017
Docker and Containers Docker Swarm management: Rancher, Shipyard, Portainer or other? Jan 28, 2017

Share This Page