浏览代码

There was a missing command to re-run the web container.

Signed-off-by: Bruno Gazzera <bgazzera@paginar.com>
Bruno Gazzera 10 年之前
父节点
当前提交
44cde56333
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      docs/sources/userguide/dockerlinks.md

+ 2 - 0
docs/sources/userguide/dockerlinks.md

@@ -282,6 +282,8 @@ will be automatically updated with the source container's new IP address,
 allowing linked communication to continue.
 allowing linked communication to continue.
 
 
     $ sudo docker restart db
     $ sudo docker restart db
+    db
+    $ sudo docker run -t -i --rm --link db:db training/webapp /bin/bash
     root@aed84ee21bde:/opt/webapp# cat /etc/hosts
     root@aed84ee21bde:/opt/webapp# cat /etc/hosts
     172.17.0.7  aed84ee21bde
     172.17.0.7  aed84ee21bde
     . . .
     . . .