{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/26762","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/26762/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/26762/comments","events_url":"https://api.github.com/repos/docker/docker/issues/26762/events","html_url":"https://github.com/docker/docker/issues/26762","id":178205542,"number":26762,"title":"Containers lost data  when host doesn't shutdown gracefully","user":{"login":"JiaminWorld","id":17679241,"avatar_url":"https://avatars.githubusercontent.com/u/17679241?v=3","gravatar_id":"","url":"https://api.github.com/users/JiaminWorld","html_url":"https://github.com/JiaminWorld","followers_url":"https://api.github.com/users/JiaminWorld/followers","following_url":"https://api.github.com/users/JiaminWorld/following{/other_user}","gists_url":"https://api.github.com/users/JiaminWorld/gists{/gist_id}","starred_url":"https://api.github.com/users/JiaminWorld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiaminWorld/subscriptions","organizations_url":"https://api.github.com/users/JiaminWorld/orgs","repos_url":"https://api.github.com/users/JiaminWorld/repos","events_url":"https://api.github.com/users/JiaminWorld/events{/privacy}","received_events_url":"https://api.github.com/users/JiaminWorld/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/more-info-needed","name":"status/more-info-needed","color":"C6A49A"},{"url":"https://api.github.com/repos/docker/docker/labels/version/1.10","name":"version/1.10","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-20T23:19:12Z","updated_at":"2016-09-21T17:53:52Z","closed_at":null,"body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Description**\r\nIf I reboot the host gracefully, containers keep all the data as it before restart.\r\nIf I just power off the host , containers will lost the data like routing table setting and env. \r\nShould orchestration handle that case or docker will do that in the future?\r\n\r\n<!--\r\nBriefly describe the problem you are having in a few paragraphs.\r\n-->\r\n\r\n**Steps to reproduce the issue:**\r\n1. Run a simple container, set env or routing table\r\n2. Power off the host \r\n3. \r\n\r\n**Describe the results you received:**\r\nEnv and routing table will be gone and ip of the containers will be different\r\n\r\n**Describe the results you expected:**\r\nKeep the data container has after restart\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n**Output of `docker version`:**\r\nDocker version 1.10.3, build 20f81dd\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\n(paste your output here)\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/248690789","html_url":"https://github.com/docker/docker/issues/26762#issuecomment-248690789","issue_url":"https://api.github.com/repos/docker/docker/issues/26762","id":248690789,"user":{"login":"JiaminWorld","id":17679241,"avatar_url":"https://avatars.githubusercontent.com/u/17679241?v=3","gravatar_id":"","url":"https://api.github.com/users/JiaminWorld","html_url":"https://github.com/JiaminWorld","followers_url":"https://api.github.com/users/JiaminWorld/followers","following_url":"https://api.github.com/users/JiaminWorld/following{/other_user}","gists_url":"https://api.github.com/users/JiaminWorld/gists{/gist_id}","starred_url":"https://api.github.com/users/JiaminWorld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiaminWorld/subscriptions","organizations_url":"https://api.github.com/users/JiaminWorld/orgs","repos_url":"https://api.github.com/users/JiaminWorld/repos","events_url":"https://api.github.com/users/JiaminWorld/events{/privacy}","received_events_url":"https://api.github.com/users/JiaminWorld/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T17:53:51Z","updated_at":"2016-09-21T17:53:51Z","body":"Hi,\n\nHere is the details.\nI am trying to use docker container to build a simple demo case that\ncontainer A can send all the traffic through container B to container C. In\nthis case I need to create 3 containers and two networks.\ndocker run -itd --privileged --net mynet1 --name A image command\ndocker run -itd --privileged --net mynet1 --name B image command\ndocker run -itd --privileged --net mynet2 --name C image command\ndocker network connect mynet2 $(containerB id)\n\nIn containers, I will need to set routing rules or some other settings. Now\nI am able to ping container C from container A.\n\nBut now, for some reason, my host power off. When I restart it, all the\ncontainers are stop. After I restart them, I am not able to ping container\nC since all the settings are gone.\n\nMy case is much more complex than it, so I need to manually set up again\nand again if host powers off for some reason.\n\nI am just wondering that why the settings in containers will be good if I\nshutdown the host gracefully. What is the difference? Will docker do\nsomething if it receive any shutdown signal?\nIn this case, should orchestrator handle it or docker will fix it?\n\nThanks,\nJiamin\n\n\nOn Wed, Sep 21, 2016 at 9:51 AM, Sebastiaan van Stijn <\nnotifications@github.com> wrote:\n\n> Can you provide the exact steps for reproducing? What commands do you run\n> to start the container? Is the container run interactively, and changes\n> made inside the container?\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/docker/docker/issues/26762#issuecomment-248672762>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AQ3DibIyvE8Yfjc8yEQAIfIF-aqiKbbMks5qsWCCgaJpZM4KCPsb>\n> .\n>\n"}}
{"actor":{"display_login":"JiaminWorld"}}