TangMonk
V2EX  ›  问与答

boot2docker 中的 container 能访问 host 中的服务吗?

  •  
  •   TangMonk · Oct 31, 2015 · 1593 views
    This topic created in 3937 days ago, the information mentioned may be changed or developed.

    在 windows 中用 boot2docker 部署 docker.

    docker 中的 rails 程序访问 host 中的 mysql 。

    这样可行吗?

    1 replies    2015-10-31 19:52:44 +08:00
    virusdefender
        1
    virusdefender  
       Oct 31, 2015
    指定 host 的 ip ,和普通远程连接一样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3588 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:41 · PVG 08:41 · LAX 17:41 · JFK 20:41
    ♥ Do have faith in what you're doing.