{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/33537","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/33537/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/33537/comments","events_url":"https://api.github.com/repos/moby/moby/issues/33537/events","html_url":"https://github.com/moby/moby/issues/33537","id":233810877,"number":33537,"title":"when change exec-opt native.cgroupdriver to “cgroupfs”，docker can not run correct?","user":{"login":"suredandan","id":5964859,"avatar_url":"https://avatars1.githubusercontent.com/u/5964859?v=3","gravatar_id":"","url":"https://api.github.com/users/suredandan","html_url":"https://github.com/suredandan","followers_url":"https://api.github.com/users/suredandan/followers","following_url":"https://api.github.com/users/suredandan/following{/other_user}","gists_url":"https://api.github.com/users/suredandan/gists{/gist_id}","starred_url":"https://api.github.com/users/suredandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suredandan/subscriptions","organizations_url":"https://api.github.com/users/suredandan/orgs","repos_url":"https://api.github.com/users/suredandan/repos","events_url":"https://api.github.com/users/suredandan/events{/privacy}","received_events_url":"https://api.github.com/users/suredandan/received_events","type":"User","site_admin":false},"labels":[{"id":73641990,"url":"https://api.github.com/repos/moby/moby/labels/area/runtime","name":"area/runtime","color":"fbca04","default":false},{"id":182417459,"url":"https://api.github.com/repos/moby/moby/labels/status/more-info-needed","name":"status/more-info-needed","color":"C6A49A","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-06-06T08:06:57Z","updated_at":"2017-06-06T11:55:48Z","closed_at":"2017-06-06T09:43:34Z","body":"```\r\nos version : centos7.3\r\nkenerl version : 3.10.0-514.16.1.el7.x86_64\r\ndocker version : 1.12.6\r\n[root@surenode2 ~]# sestatus -v\r\nSELinux status:                 disabled\r\n```\r\nI modify the config file \"/lib/systemd/system/docker.service\" ,When I change the option \"--exec-opt native.cgroupdriver\" from \"systemd\" to \"cgroupfs\". I find the docker can not run any images!\r\n\r\n```\r\n[root@surenode2 system]# cat /lib/systemd/system/docker.service |grep cgroup\r\n          --exec-opt native.cgroupdriver=**cgroupfs** \\\r\n[root@surenode2 system]# docker images | grep mysql\r\ndocker.io/mysql     latest              e799c7f9ae9c        3 weeks ago         407.3 MB\r\n[root@surenode2 system]# docker run -p 3307:3307 -e MYSQL_ROOT_PASSWORD=123456 -d mysql\r\n3395c8d505d3fc20d39e25c510a090649f9f447bce985028ea7274e79183d077\r\n/usr/bin/docker-current: Error response from daemon: invalid header field value \"oci runtime error: container_linux.go:247: starting container process caused \\\"process_linux.go:334: running prestart hook 1 caused \\\\\\\"error running hook: exit status 1, stdout: , stderr: \\\\\\\"\\\"\\n\".\r\n```\r\n\r\nAnd,if I change exec-opt native.cgroupdriver to \"systemd\" ,Docker can run any images..\r\n```\r\n[root@surenode2 ~]# vi /lib/systemd/system/docker.service \r\n[root@surenode2 ~]# systemctl daemon-reload\r\n[root@surenode2 ~]# systemctl restart docker\r\n[root@surenode2 ~]# cat /lib/systemd/system/docker.service|grep cgroup\r\n          --exec-opt native.cgroupdriver=**systemd** \\\r\n[root@surenode2 ~]# docker  run -p 3307:3307 -e MYSQL_ROOT_PASSWORD=123456 -d mysql\r\n550b674d3b22cf10333887edc963ec7ae87142b73f386a6c1a99e29f25978156\r\n[root@surenode2 ~]# \r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/306463876","html_url":"https://github.com/moby/moby/issues/33537#issuecomment-306463876","issue_url":"https://api.github.com/repos/moby/moby/issues/33537","id":306463876,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars1.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T11:55:48Z","updated_at":"2017-06-06T11:55:48Z","body":"Perfect! Happy to hear your issue is resolved 👍 "}}
{"actor":{"display_login":"thaJeztah"}}