Does the docker container be portable?

For example, a container A run mongodb, expose 27010 port, and then webapp running in container B, need to connect 127.0.0.1:27010 and mongodb communication, how can the container A 27010 port mapping to container B 27010 port? 2015-08-27 add comment share it

  • Weibo
  • QZONE
  • Micro letter

Did not find the relevant results

    Invited:

    Xiaolunsanguo – Jingdong Mall – the basic platform – JDOS team

    Agree from: girlskiller


    I do not feel so much trouble.
    You can directly connect the containers A and B through the link, you can directly through the network.

    Heads up! This alert needs your attention, but it's not super important.