search

Home  >  Q&A  >  body text

docker内创建jenkins访问另一个容器下的服务器问题

docker内创建了两个容器:
容器1.搭建了jenkins(172.17.0.2)
容器2.搭建了一个服务器(172.17.0.3)
首先在容器2内创建了SSH
然后我在容器1内的jenkins内配置节点,但是我的节点总是不行
节点配置:

错误报告:

弄了一整天了···还没调好,急求大神帮小弟看看···┭┮﹏┭┮

PHPzPHPz2805 days ago1341

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-04-26 09:03:07

    There is no need to do this. Just connect Jenkins to the host, then delete the container and run a new one. If the deployment is simple, just update the directory mounted with -v and restart the container.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-26 09:03:07

    You can use the container name to access the container service from another one under the same bridge network, not the IP address of the container! IP may change

    reply
    0
  • Cancelreply