{"action":"closed","issue":{"url":"https://api.github.com/repos/weaveworks/weave/issues/1207","labels_url":"https://api.github.com/repos/weaveworks/weave/issues/1207/labels{/name}","comments_url":"https://api.github.com/repos/weaveworks/weave/issues/1207/comments","events_url":"https://api.github.com/repos/weaveworks/weave/issues/1207/events","html_url":"https://github.com/weaveworks/weave/issues/1207","id":96299884,"number":1207,"title":"container fails to start with \"[8] System error: Unit docker-<id>.scope already exists.\"","user":{"login":"paulbellamy","id":250199,"avatar_url":"https://avatars.githubusercontent.com/u/250199?v=3","gravatar_id":"","url":"https://api.github.com/users/paulbellamy","html_url":"https://github.com/paulbellamy","followers_url":"https://api.github.com/users/paulbellamy/followers","following_url":"https://api.github.com/users/paulbellamy/following{/other_user}","gists_url":"https://api.github.com/users/paulbellamy/gists{/gist_id}","starred_url":"https://api.github.com/users/paulbellamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulbellamy/subscriptions","organizations_url":"https://api.github.com/users/paulbellamy/orgs","repos_url":"https://api.github.com/users/paulbellamy/repos","events_url":"https://api.github.com/users/paulbellamy/events{/privacy}","received_events_url":"https://api.github.com/users/paulbellamy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/weaveworks/weave/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/weaveworks/weave/labels/resolution/not_our_problem","name":"resolution/not_our_problem","color":"ffffff"},{"url":"https://api.github.com/repos/weaveworks/weave/labels/[component/proxy]","name":"[component/proxy]","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/weaveworks/weave/milestones/3","html_url":"https://github.com/weaveworks/weave/milestones/n/a","labels_url":"https://api.github.com/repos/weaveworks/weave/milestones/3/labels","id":1073074,"number":3,"title":"n/a","description":"not part of a release, e.g. immediately published doc update","creator":{"login":"rade","id":109109,"avatar_url":"https://avatars.githubusercontent.com/u/109109?v=3","gravatar_id":"","url":"https://api.github.com/users/rade","html_url":"https://github.com/rade","followers_url":"https://api.github.com/users/rade/followers","following_url":"https://api.github.com/users/rade/following{/other_user}","gists_url":"https://api.github.com/users/rade/gists{/gist_id}","starred_url":"https://api.github.com/users/rade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rade/subscriptions","organizations_url":"https://api.github.com/users/rade/orgs","repos_url":"https://api.github.com/users/rade/repos","events_url":"https://api.github.com/users/rade/events{/privacy}","received_events_url":"https://api.github.com/users/rade/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":148,"state":"open","created_at":"2015-04-18T06:40:22Z","updated_at":"2015-07-22T15:26:30Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-07-21T12:02:37Z","updated_at":"2015-07-22T15:26:30Z","closed_at":"2015-07-22T15:26:30Z","body":"Found in https://github.com/weaveworks/weave/issues/1188\r\n\r\nNot sure if it happens at all without the proxy. It's intermittent, so possibly a race condition.\r\n\r\nReproducible with:\r\n```bash\r\n#! /bin/bash\r\n\r\n. ./config.sh\r\n\r\nstart_suite \"Stress test container restarts\"\r\n\r\nweave_on $HOST1 launch --log-level debug\r\n\r\n# 2 containers on each host, all with the same names\r\nproxy docker_on $HOST1 run -dti --name=foo $SMALL_IMAGE /bin/sh\r\nproxy docker_on $HOST1 run -dti --name=bar $SMALL_IMAGE /bin/sh\r\n\r\n# now stop and start the containers a bunch of times\r\nfor i in $(seq 50); do\r\n  proxy docker_on $HOST1 restart foo 1>/dev/null\r\n  proxy docker_on $HOST1 inspect --format=\"{{.State.Running}}\" foo | grep true 1>/dev/null\r\n  proxy docker_on $HOST1 restart bar 1>/dev/null\r\n  proxy docker_on $HOST1 inspect --format=\"{{.State.Running}}\" bar | grep true 1>/dev/null\r\ndone\r\n\r\nend_suite\r\n```"}}