{"action":"created","issue":{"url":"https://api.github.com/repos/ddrozdov/docker-compose-swarm-mode/issues/25","repository_url":"https://api.github.com/repos/ddrozdov/docker-compose-swarm-mode","labels_url":"https://api.github.com/repos/ddrozdov/docker-compose-swarm-mode/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/ddrozdov/docker-compose-swarm-mode/issues/25/comments","events_url":"https://api.github.com/repos/ddrozdov/docker-compose-swarm-mode/issues/25/events","html_url":"https://github.com/ddrozdov/docker-compose-swarm-mode/issues/25","id":183051904,"number":25,"title":"unless-stopped restart condition error","user":{"login":"the-nw1-group","id":13179270,"avatar_url":"https://avatars.githubusercontent.com/u/13179270?v=3","gravatar_id":"","url":"https://api.github.com/users/the-nw1-group","html_url":"https://github.com/the-nw1-group","followers_url":"https://api.github.com/users/the-nw1-group/followers","following_url":"https://api.github.com/users/the-nw1-group/following{/other_user}","gists_url":"https://api.github.com/users/the-nw1-group/gists{/gist_id}","starred_url":"https://api.github.com/users/the-nw1-group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-nw1-group/subscriptions","organizations_url":"https://api.github.com/users/the-nw1-group/orgs","repos_url":"https://api.github.com/users/the-nw1-group/repos","events_url":"https://api.github.com/users/the-nw1-group/events{/privacy}","received_events_url":"https://api.github.com/users/the-nw1-group/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-14T13:37:14Z","updated_at":"2016-10-14T22:09:36Z","closed_at":"2016-10-14T13:44:43Z","body":"I think I'm getting the following error:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/home/wibble/docker_compose_swarm_mode.py\", line 321, in <module>\r\n    main()\r\n  File \"/home/wibble/docker_compose_swarm_mode.py\", line 297, in main\r\n    getattr(docker_compose, args.command)()\r\n  File \"/home/wibble/docker_compose_swarm_mode.py\", line 179, in up\r\n    locals().get(parameter, unsupported)()\r\n  File \"/home/wibble/docker_compose_swarm_mode.py\", line 105, in restart\r\n    cmd.extend(['--restart-condition', {'always': 'any'}[value], '\\\\\\n'])\r\nKeyError: 'unless-stopped'\r\n```\r\n\r\nbecause we have the following in our compose files:\r\n`restart: unless-stopped`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ddrozdov/docker-compose-swarm-mode/issues/comments/253931772","html_url":"https://github.com/ddrozdov/docker-compose-swarm-mode/issues/25#issuecomment-253931772","issue_url":"https://api.github.com/repos/ddrozdov/docker-compose-swarm-mode/issues/25","id":253931772,"user":{"login":"ddrozdov","id":1343337,"avatar_url":"https://avatars.githubusercontent.com/u/1343337?v=3","gravatar_id":"","url":"https://api.github.com/users/ddrozdov","html_url":"https://github.com/ddrozdov","followers_url":"https://api.github.com/users/ddrozdov/followers","following_url":"https://api.github.com/users/ddrozdov/following{/other_user}","gists_url":"https://api.github.com/users/ddrozdov/gists{/gist_id}","starred_url":"https://api.github.com/users/ddrozdov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddrozdov/subscriptions","organizations_url":"https://api.github.com/users/ddrozdov/orgs","repos_url":"https://api.github.com/users/ddrozdov/repos","events_url":"https://api.github.com/users/ddrozdov/events{/privacy}","received_events_url":"https://api.github.com/users/ddrozdov/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T22:09:36Z","updated_at":"2016-10-14T22:09:36Z","body":"Moreover there is no `stop` command for docker service.\r\nWhat I do to \"stop\" the service is `scale` it to zero replicas. In this case `restart` \"unless-stopped\" and \"always\" would logically do the same so you can just change it to \"always\" in your configs."}}
{"actor":{"display_login":"ddrozdov"}}