{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10706","labels_url":"https://api.github.com/repos/docker/docker/issues/10706/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10706/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10706/events","html_url":"https://github.com/docker/docker/issues/10706","id":57315902,"number":10706,"title":"Cannot run exec command ","user":{"login":"Vad1mo","id":1492007,"avatar_url":"https://avatars.githubusercontent.com/u/1492007?v=3","gravatar_id":"","url":"https://api.github.com/users/Vad1mo","html_url":"https://github.com/Vad1mo","followers_url":"https://api.github.com/users/Vad1mo/followers","following_url":"https://api.github.com/users/Vad1mo/following{/other_user}","gists_url":"https://api.github.com/users/Vad1mo/gists{/gist_id}","starred_url":"https://api.github.com/users/Vad1mo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vad1mo/subscriptions","organizations_url":"https://api.github.com/users/Vad1mo/orgs","repos_url":"https://api.github.com/users/Vad1mo/repos","events_url":"https://api.github.com/users/Vad1mo/events{/privacy}","received_events_url":"https://api.github.com/users/Vad1mo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-11T13:33:06Z","updated_at":"2015-05-05T15:17:15Z","closed_at":null,"body":"Currenty I do a lot of docke exec -ti into a running container to tryout and change some config.  What I found out is that I get often this error.  \r\n```\r\nCannot run exec command 3a059ca0c068bb5090c41b69a5b493562410c34f501926cf57abd0c080c53d6a in container d59a8b5dde5bfb4cb2a07641b08e2c5cccb8eac089724bd985c72c5b05f1b286: State unavailable for container with ID d59a8b5dde5bfb4cb2a07641b08e2c5cccb8eac089724bd985c72c5b05f1b286. The container may have been cleaned up already. Error: open /mnt/sda1/var/lib/docker/execdriver/native/d59a8b5dde5bfb4cb2a07641b08e2c5cccb8eac089724bd985c72c5b05f1b286/state.json: no such file or directory\r\n                                                                                                                                                                                                               Error starting exec command in container 3a059ca0c068bb5090c41b69a5b493562410c34f501926cf57abd0c080c53d6a: Cannot run exec command 3a059ca0c068bb5090c41b69a5b493562410c34f501926cf57abd0c080c53d6a in container d59a8b5dde5bfb4cb2a07641b08e2c5cccb8eac089724bd985c72c5b05f1b286: State unavailable for container with ID d59a8b5dde5bfb4cb2a07641b08e2c5cccb8eac089724bd985c72c5b05f1b286. The container may have been cleaned up already. Error: open /mnt/sda1/var/lib/docker/execdriver/native/d59a8b5dde5bfb4cb2a07641b08e2c5cccb8eac089724bd985c72c5b05f1b286/state.json: no such file or directory\r\n```\r\nAfter that I can not stop, start remove, kill the container.  I need to restart docker and try it again.  \r\n\r\nthe funny thing is that docker still believes the container is still active and running. \r\n\r\n```\r\nContainers: 55\r\nImages: 272\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Dirs: 385\r\nExecution Driver: native-0.2\r\nKernel Version: 3.16.7-tinycore64\r\nOperating System: Boot2Docker 1.4.1 (TCL 5.4); master : 86f7ec8 - Tue Dec 16 23:11:29 UTC 2014\r\nDebug mode (server): true\r\nDebug mode (client): false\r\nFds: 62\r\nGoroutines: 49\r\nEventsListeners: 1\r\nInit Path: /usr/local/bin/docker\r\nUsername: vad1mo\r\nRegistry: [https://index.docker.io/v1/]\r\n```\r\nI am afraid this might also happen once in production environment.  \r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/99112301","html_url":"https://github.com/docker/docker/issues/10706#issuecomment-99112301","issue_url":"https://api.github.com/repos/docker/docker/issues/10706","id":99112301,"user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T15:17:15Z","updated_at":"2015-05-05T15:17:15Z","body":"@dirkmc I don't think you are using exec correctly.\r\nSyntax would be `docker exec <opts> <container> <command>`\r\n\r\n`docker exec` is for running a new command inside an existing container."}}