{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/17826","labels_url":"https://api.github.com/repos/docker/docker/issues/17826/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/17826/comments","events_url":"https://api.github.com/repos/docker/docker/issues/17826/events","html_url":"https://github.com/docker/docker/issues/17826","id":115880518,"number":17826,"title":"Containers become invisible to each other after 1.9.0 update","user":{"login":"Aliance","id":7838144,"avatar_url":"https://avatars.githubusercontent.com/u/7838144?v=3","gravatar_id":"","url":"https://api.github.com/users/Aliance","html_url":"https://github.com/Aliance","followers_url":"https://api.github.com/users/Aliance/followers","following_url":"https://api.github.com/users/Aliance/following{/other_user}","gists_url":"https://api.github.com/users/Aliance/gists{/gist_id}","starred_url":"https://api.github.com/users/Aliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aliance/subscriptions","organizations_url":"https://api.github.com/users/Aliance/orgs","repos_url":"https://api.github.com/users/Aliance/repos","events_url":"https://api.github.com/users/Aliance/events{/privacy}","received_events_url":"https://api.github.com/users/Aliance/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-11-09T13:52:43Z","updated_at":"2015-11-28T21:12:13Z","closed_at":"2015-11-11T14:20:23Z","body":"Hello, after updating to `1.9.0` I have a problem of container's visibility. Before update I used `1.8.3` and everything works fine for me.\r\n\r\n```\r\n$ docker version\r\nClient:\r\n Version:      1.8.3\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   f4bf5c7\r\n Built:        Mon Oct 12 05:39:44 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.8.3\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   f4bf5c7\r\n Built:        Mon Oct 12 05:39:44 UTC 2015\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n```\r\n$ docker info\r\nContainers: 7\r\nImages: 160\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 174\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.19.0-31-generic\r\nOperating System: Ubuntu 15.04\r\nCPUs: 4\r\nTotal Memory: 7.797 GiB\r\nName: <...>\r\nID: <...>\r\nUsername: <...>\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\n```\r\n\r\n`uname -a`: `Linux lesnykh 3.19.0-31-generic #36-Ubuntu SMP Wed Oct 7 15:04:02 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\nHow reproducible: my `docker-compose.yml`\r\n```yaml\r\napp:\r\n    container_name: project-dev\r\n    build: ./build\r\n    links:\r\n        - redis\r\n        - node\r\nredis:\r\n    container_name: project-redis\r\n    image: redis:3.0.5\r\n    volumes:\r\n        - /var/db/redis:/data\r\nnode:\r\n    container_name: project-node\r\n    build: ./build-node\r\n    volumes:\r\n        - /var/log/project/nodejs:/app/log\r\n```\r\n\r\nSteps to Reproduce:\r\n1. I run `docker-compose up -d` to up all containers;\r\n2. then run `docker exec -it project-node bash` to enter into nodejs container, which is linked to main (app) container;\r\n3. and after it in nodejs container I run `cat /etc/hosts`.\r\n\r\nExpected Results:\r\nIn version `1.8.3` I see all other containers:\r\n```\r\nroot@665944c01a16:/# cat /etc/hosts\r\n172.17.0.2\t665944c01a16\r\n127.0.0.1\tlocalhost\r\n::1\tlocalhost ip6-localhost ip6-loopback\r\nfe00::0\tip6-localnet\r\nff00::0\tip6-mcastprefix\r\nff02::1\tip6-allnodes\r\nff02::2\tip6-allrouters\r\n172.17.0.2\tproject-node\r\n172.17.0.2\tproject-node.bridge\r\n172.17.0.3\tproject-redis\r\n172.17.0.3\tproject-redis.bridge\r\n172.17.0.4\tproject-dev\r\n172.17.0.4\tproject-dev.bridge\r\n```\r\n\r\nActual Results:\r\nBut in `1.9.0` I see nothing. As I understand, I have to use `--net` parameter to make `bridge`, am I write? How can I do it with `--link`?"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/160335728","html_url":"https://github.com/docker/docker/issues/17826#issuecomment-160335728","issue_url":"https://api.github.com/repos/docker/docker/issues/17826","id":160335728,"user":{"login":"Aliance","id":7838144,"avatar_url":"https://avatars.githubusercontent.com/u/7838144?v=3","gravatar_id":"","url":"https://api.github.com/users/Aliance","html_url":"https://github.com/Aliance","followers_url":"https://api.github.com/users/Aliance/followers","following_url":"https://api.github.com/users/Aliance/following{/other_user}","gists_url":"https://api.github.com/users/Aliance/gists{/gist_id}","starred_url":"https://api.github.com/users/Aliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aliance/subscriptions","organizations_url":"https://api.github.com/users/Aliance/orgs","repos_url":"https://api.github.com/users/Aliance/repos","events_url":"https://api.github.com/users/Aliance/events{/privacy}","received_events_url":"https://api.github.com/users/Aliance/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T21:12:13Z","updated_at":"2015-11-28T21:12:13Z","body":"I had read [docker container networking](http://docs.docker.com/engine/userguide/networking/dockernetworks/) and understood many interesting facts. Bridge default network - is legacy and deprecated:\r\n> it is better to avoid them and define your own bridge networks instead.\r\n\r\n> I believe compose has experimental support for user created networks.\r\n[Documentation](https://docs.docker.com/compose/compose-file/#net) says what you're right.\r\n\r\nSo I did theese steps:\r\n* created user-defined bridge network `docker network create --driver bridge docker_internal_net`\r\n* removed `link` and added `net` into my `docker-compose.yml`:\r\n```yaml\r\napp:\r\n    container_name: project-dev\r\n    net: docker_internal_net\r\n    build: ./build\r\nredis:\r\n    container_name: project-redis\r\n    net: docker_internal_net\r\n    image: redis:3.0.5\r\n    volumes:\r\n        - /var/db/redis:/data\r\nnode:\r\n    container_name: project-node\r\n    net: docker_internal_net\r\n    build: ./build-node\r\n    volumes:\r\n        - /var/log/project/nodejs:/app/log\r\n```\r\n\r\nAnd everything works fine! Thanx everyone involved"}}