{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/6922","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/6922/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/6922/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/6922/events","html_url":"https://github.com/rancher/rancher/issues/6922","id":193459002,"number":6922,"title":"cannot exec a container that has run and stopped","user":{"login":"psyhonut","id":1383457,"avatar_url":"https://avatars.githubusercontent.com/u/1383457?v=3","gravatar_id":"","url":"https://api.github.com/users/psyhonut","html_url":"https://github.com/psyhonut","followers_url":"https://api.github.com/users/psyhonut/followers","following_url":"https://api.github.com/users/psyhonut/following{/other_user}","gists_url":"https://api.github.com/users/psyhonut/gists{/gist_id}","starred_url":"https://api.github.com/users/psyhonut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyhonut/subscriptions","organizations_url":"https://api.github.com/users/psyhonut/orgs","repos_url":"https://api.github.com/users/psyhonut/repos","events_url":"https://api.github.com/users/psyhonut/events{/privacy}","received_events_url":"https://api.github.com/users/psyhonut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-05T10:21:21Z","updated_at":"2016-12-30T07:11:04Z","closed_at":"2016-12-18T16:18:09Z","body":"**Rancher Version:** 1.2.0\r\n\r\n**Docker Version:** 1.12.3\r\n\r\n**OS and where are the hosts located? (cloud, bare metal, etc):** 3.10.0-327.36.2.el7.x86_64\r\n\r\n**Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)** single node rancher, internal DB\r\n\r\n**Environment Type: (Cattle/Kubernetes/Swarm/Mesos)** Cattle\r\n\r\n**Steps to Reproduce:** Create service in stack. Open service in UI, trying to Execute Shell.\r\n\r\n**Results:** Popup window opens and closes.\r\n\r\n**Expected:** Popup window is opened and you can work in container Bash.\r\n\r\n\r\nWhen I ssh to host and try to: \r\n`docker exec -it r-icms-postgresql-1-b347541b bash`\r\nI got:\r\n`rpc error: code = 13 desc = invalid header field value \"oci runtime error: exec failed: cannot exec a container that has run and stopped\\n\"`"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/269740031","html_url":"https://github.com/rancher/rancher/issues/6922#issuecomment-269740031","issue_url":"https://api.github.com/repos/rancher/rancher/issues/6922","id":269740031,"user":{"login":"yeruisen","id":12295648,"avatar_url":"https://avatars.githubusercontent.com/u/12295648?v=3","gravatar_id":"","url":"https://api.github.com/users/yeruisen","html_url":"https://github.com/yeruisen","followers_url":"https://api.github.com/users/yeruisen/followers","following_url":"https://api.github.com/users/yeruisen/following{/other_user}","gists_url":"https://api.github.com/users/yeruisen/gists{/gist_id}","starred_url":"https://api.github.com/users/yeruisen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeruisen/subscriptions","organizations_url":"https://api.github.com/users/yeruisen/orgs","repos_url":"https://api.github.com/users/yeruisen/repos","events_url":"https://api.github.com/users/yeruisen/events{/privacy}","received_events_url":"https://api.github.com/users/yeruisen/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T07:11:04Z","updated_at":"2016-12-30T07:11:04Z","body":"@vincent99 \r\nIt seems that the 1.12.3 version does not fix this bug\r\n```\r\n[root@manager ~]# docker version\r\nClient:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.3\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   6b644ec\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n[root@manager ~]# docker exec -it a0c540de91bc /bin/bash\r\nrpc error: code = 13 desc = invalid header field value \"oci runtime error: exec failed: cannot exec a container that has run and stopped\\n\"\r\n```\r\n\r\n```\r\ndocker exec -it a0c540de91bc /bin/bash\r\nrpc error: code = 13 desc = invalid header field value \"oci runtime error: exec failed: cannot exec a container that has run and stopped\\n\"\r\n```\r\n"}}
{"actor":{"display_login":"yeruisen"}}