{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/32572","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/32572/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/32572/comments","events_url":"https://api.github.com/repos/docker/docker/issues/32572/events","html_url":"https://github.com/docker/docker/issues/32572","id":221379115,"number":32572,"title":"macvlan: network not found error approximately every 8th \"docker-compose up\" command","user":{"login":"mkilchhofer","id":7290987,"avatar_url":"https://avatars3.githubusercontent.com/u/7290987?v=3","gravatar_id":"","url":"https://api.github.com/users/mkilchhofer","html_url":"https://github.com/mkilchhofer","followers_url":"https://api.github.com/users/mkilchhofer/followers","following_url":"https://api.github.com/users/mkilchhofer/following{/other_user}","gists_url":"https://api.github.com/users/mkilchhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/mkilchhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkilchhofer/subscriptions","organizations_url":"https://api.github.com/users/mkilchhofer/orgs","repos_url":"https://api.github.com/users/mkilchhofer/repos","events_url":"https://api.github.com/users/mkilchhofer/events{/privacy}","received_events_url":"https://api.github.com/users/mkilchhofer/received_events","type":"User","site_admin":false},"labels":[{"id":237472034,"url":"https://api.github.com/repos/docker/docker/labels/area/networking","name":"area/networking","color":"fbca04","default":false},{"id":375714123,"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-12T20:20:31Z","updated_at":"2017-04-12T20:20:31Z","closed_at":null,"body":"Hi there\r\n\r\nI already reported an issue in docker/compose, but they told me to repot it here.\r\nhttps://github.com/docker/compose/issues/4717\r\n\r\n**Description**\r\nWe use macvlan as a 2nd network in a docker container to connect it to the physical network.\r\nMostly it works fine, but approximately every 8th \"docker-compose up\" command fails with this message:\r\n\r\n```\r\n(...)\r\nCreating default_orion_1\r\nCreating default_pegasus_1\r\n\r\nERROR: for broho  Cannot start service broho: driver failed revoking external connectivity on endpoint default_broho_1 (4aed7b1bb508a07d3daf074901d011778a153460c1c87a238f2f4d4c08a7519d): network not found: 1e320a2ba090ea6f6b563c421ecc3eda121aa3065cd32c52dc74fb42851d23d6\r\nEncountered errors while bringing up the project.\r\n```\r\n\r\n**Steps to reproduce the issue:**\r\n0. define networks of docker-compose.yaml project\r\n```\r\nnetworks:\r\n  default:\r\n    external:\r\n      name: isa-docker\r\n  vehicle:\r\n    external:\r\n      name: isa-vehicle\r\n```\r\n1. define networks of service broho in docker-compose.yaml\r\n```\r\n    networks:\r\n      - default\r\n      - vehicle\r\n```\r\n2. all services in this compose project have no networks specified - so they will use the default network\r\n\r\n**Describe the results you received:**\r\nsee error described in description\r\n\r\n\r\n**Describe the results you expected:**\r\nThe project should start, all container connects to the default network and the container \"broho\" should have an additional network with macvlan.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\nI tested this with this bash script (pseudo code):\r\n```\r\n$ docker-compose down\r\n$ docker-compose up\r\n$ sleep 120\r\n```\r\nTested ~800 times, and approximately 100 times, the error described above occurred.\r\n\r\n**Output of `docker version`:**\r\n```\r\n[root@eddie027 ~]# docker version\r\nClient:\r\n Version:         1.12.6\r\n API version:     1.24\r\n Package version: docker-common-1.12.6-11.el7.x86_64\r\n Go version:      go1.7.4\r\n Git commit:      96d83a5/1.12.6\r\n Built:           Thu Feb 23 11:52:33 2017\r\n OS/Arch:         linux/amd64\r\n\r\nServer:\r\n Version:         1.12.6\r\n API version:     1.24\r\n Package version: docker-common-1.12.6-11.el7.x86_64\r\n Go version:      go1.7.4\r\n Git commit:      96d83a5/1.12.6\r\n Built:           Thu Feb 23 11:52:33 2017\r\n OS/Arch:         linux/amd64\r\n``` \r\n\r\n**Output of `docker info`:**\r\n```\r\n(paste your output here)\r\n```\r\n\r\nIs there something I can test to help debugging?\r\nWhen I remove 'networks' from service 'broho' in the file docker-compose.yaml, and connect this container by \"docker network connect isa-vehicle default_broho_1\" after compose started the container, it works fine."}}
{"actor":{"display_login":"mkilchhofer"}}