{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/compose/issues/3988","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/3988/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/3988/comments","events_url":"https://api.github.com/repos/docker/compose/issues/3988/events","html_url":"https://github.com/docker/compose/issues/3988","id":179660535,"number":3988,"title":"ipv6_address broken","user":{"login":"peterthomassen","id":4242683,"avatar_url":"https://avatars.githubusercontent.com/u/4242683?v=3","gravatar_id":"","url":"https://api.github.com/users/peterthomassen","html_url":"https://github.com/peterthomassen","followers_url":"https://api.github.com/users/peterthomassen/followers","following_url":"https://api.github.com/users/peterthomassen/following{/other_user}","gists_url":"https://api.github.com/users/peterthomassen/gists{/gist_id}","starred_url":"https://api.github.com/users/peterthomassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterthomassen/subscriptions","organizations_url":"https://api.github.com/users/peterthomassen/orgs","repos_url":"https://api.github.com/users/peterthomassen/repos","events_url":"https://api.github.com/users/peterthomassen/events{/privacy}","received_events_url":"https://api.github.com/users/peterthomassen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-28T01:41:04Z","updated_at":"2016-09-28T01:41:04Z","closed_at":null,"body":"I am using docker 1.12.1 on Ubuntu 16.04, and docker-compose 1.8.1. The Compose file from https://docs.docker.com/compose/compose-file/#ipv4-address-ipv6-address does not run correctly: The `ipv6_address` setting seems to be ignored. I tried on various machines.\r\n\r\nFor reference, I created `docker-compose.yml` with the following content:\r\n\r\n    version: '2'\r\n\r\n    services:\r\n      app:\r\n        image: busybox\r\n        command: ifconfig\r\n        networks:\r\n          app_net:\r\n            ipv4_address: 172.16.238.10\r\n            ipv6_address: 2001:3984:3989::10\r\n\r\n    networks:\r\n      app_net:\r\n        driver: bridge\r\n        driver_opts:\r\n          com.docker.network.enable_ipv6: \"true\"\r\n        ipam:\r\n          driver: default\r\n          config:\r\n          - subnet: 172.16.238.0/24\r\n            gateway: 172.16.238.1\r\n          - subnet: 2001:3984:3989::/64\r\n            gateway: 2001:3984:3989::1\r\n\r\nNow, running `docker-compose up` produces\r\n\r\n    Creating network \"tmp_app_net\" with driver \"bridge\"\r\n    Creating tmp_app_1\r\n    Attaching to tmp_app_1\r\n    app_1  | eth0      Link encap:Ethernet  HWaddr 02:42:AC:10:EE:0A  \r\n    app_1  |           inet addr:172.16.238.10  Bcast:0.0.0.0  Mask:255.255.255.0\r\n    app_1  |           inet6 addr: fe80::42:acff:fe10:ee0a/64 Scope:Link\r\n    app_1  |           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n    app_1  |           RX packets:4 errors:0 dropped:0 overruns:0 frame:0\r\n    app_1  |           TX packets:1 errors:0 dropped:0 overruns:0 carrier:0\r\n    app_1  |           collisions:0 txqueuelen:0 \r\n    app_1  |           RX bytes:520 (520.0 B)  TX bytes:90 (90.0 B)\r\n    app_1  | \r\n    app_1  | lo        Link encap:Local Loopback  \r\n    app_1  |           inet addr:127.0.0.1  Mask:255.0.0.0\r\n    app_1  |           inet6 addr: ::1/128 Scope:Host\r\n    app_1  |           UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n    app_1  |           RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n    app_1  |           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n    app_1  |           collisions:0 txqueuelen:1 \r\n    app_1  |           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n    app_1  | \r\n    tmp_app_1 exited with code 0\r\n\r\nThe IPv6 address is not assigned. That seems to be a bug, either in `ipv6_address` itself, or there is some required configuration step missing from the documentation.\r\n\r\nFor further information, here's what I already tried:\r\n\r\n 1. Starting the docker daemon with `--ipv6`\r\n 2. Starting the docker daemon with `--ipv6 --fixed-cidr-v6=\"2001:3984:3989::/64\"`\r\n      - Note that `docker run -it busybox ifconfig` actually gives me an IPv6 address here (from the `--fixed-cidr` subnet which is assigned to the default `bridge` network)\r\n 3. Using my actual IPv6 subnet instead of the one from the code example, and repeating 2. with this subnet"}}
{"actor":{"display_login":"peterthomassen"}}