Dockerã³ã³ããéã®linkï¼database.ymlã®æ¸ãæ¹ Dockerã¯Linksã¨ããã³ã³ããå士ã®é£æºãç°¡åã«è¡ãä»çµã¿ããã¤ï¼ ããã¯ï¼DBç¨ã®ã³ã³ããã¨ã¢ããªã±ã¼ã·ã§ã³ç¨ã®ã³ã³ããã®é£æºãè¡ãããã¨ããªã©ã«æç¨ã«ãªãï¼ ä¾ãã°ï¼1337ãã¼ããEXPOSEãããcontainer1ã¨ããååã®ã³ã³ããã¨ã®é£æºãè¡ãããã¨ããï¼ ãã®ã¨ã以ä¸ã®ããã«ï¼-link é£æºãããã³ã³ããå:ã¨ã¤ãªã¢ã¹åã§æ°ããã³ã³ãããèµ·åããã¨ï¼ ãã®ã³ã³ããå ã«é£æºãããã³ã³ããã®ãã¼ãçªå·ãIPããã£ãç°å¢å¤æ°ãç¾ããï¼ docker run -d -link container1:alias user/sample bash root@48408a38c9b2:/# env ALIAS_PORT_5432_TCP_ADDR=172.17.0.2 ALIAS_PORT=tcp://172.
{{#tags}}- {{label}}
{{/tags}}