{"id":2164,"date":"2023-02-25T00:15:46","date_gmt":"2023-02-24T21:15:46","guid":{"rendered":"https:\/\/amorev.ru\/?p=2164"},"modified":"2023-02-25T00:15:47","modified_gmt":"2023-02-24T21:15:47","slug":"docker-no-killing-docker-container-problem","status":"publish","type":"post","link":"https:\/\/amorev.ru\/en\/docker-no-killing-docker-container-problem\/","title":{"rendered":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0443\u0431\u0438\u0442\u044c Docker \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440"},"content":{"rendered":"\n<p>\u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043d\u0435 \u0434\u0430\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f, \u0443\u0436\u0435 \u0434\u043e \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d Docker. \u042f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u0437\u0430\u043f\u0443\u0441\u043a \u043c\u0435\u043b\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 docker-compose (\u043f\u0440\u043e \u0441\u0432\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u0435\u043b\u0438\u043b\u0441\u044f <a href=\"https:\/\/amorev.ru\/gmoreva-1-bash-docker-compose\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0437\u0434\u0435\u0441\u044c<\/a>), \u043f\u043e\u0442\u043e\u043c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0443\u0431\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440. \u0412\u0432\u043e\u0436\u0443 \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>docker kill<\/code> \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Error response from daemon: Cannot kill container: <ID>: Cannot kill container xxxx: unknown error after kill: runc did not terminate sucessfully: container_linux.go:392: signaling init process caused \"permission denied\"<\/pre>\n\n\n\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0435\u0442 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0445\u043e\u0442\u044f \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0438 \u043f\u0440\u0430\u0432\u0430 sudo. \u042f \u043f\u0440\u043e\u0432\u043e\u0437\u0438\u043b\u0441\u044f \u043d\u0435 \u043e\u0434\u0438\u043d \u0447\u0430\u0441, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u0432 \u0447\u0435\u043c \u0434\u0435\u043b\u043e \u0438 \u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0434\u043e\u043a\u0435\u0440\u0430 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u0430. <\/p>\n\n\n\n<p>\u041f\u043e\u043c\u043e\u0433\u043b\u0430 \u0441\u043b\u0435\u0434\u0443\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430: <code>sudo aa-remove-unknown<\/code>. \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0443\u0431\u0438\u0432\u0430\u043b\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0412\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0431\u044b\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/532988\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AppArmor<\/a> \u0438 \u043e\u043d \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b \u0443\u0431\u0438\u0442\u044c \u0434\u043e\u043a\u0435\u0440 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440. \u042f \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0448\u0435\u043b <a href=\"https:\/\/javahowtos.com\/guides\/124-docker\/414-solved-cannot-kill-docker-container-permission-denied.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u043f\u043e\u0441\u0442 <\/a>\u043f\u0440\u043e \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0438 \u0442\u0430\u043c \u0434\u0430\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c AppArmor, \u043d\u043e \u044f \u0431\u044b \u043d\u0435 \u0441\u043e\u0432\u0435\u0442\u043e\u0432\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e - \u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0445 \u0438 \u0440\u0438\u0441\u043a. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043d\u0435 \u0434\u0430\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f, \u0443\u0436\u0435 \u0434\u043e \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d Docker. \u042f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u0437\u0430\u043f\u0443\u0441\u043a \u043c\u0435\u043b\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":2166,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,47,166],"tags":[37,36,272],"class_list":["post-2164","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-korotkie-zametki","category-main","tag-devops","tag-docker","tag-docker-compose"],"_links":{"self":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts\/2164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/comments?post=2164"}],"version-history":[{"count":0,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts\/2164\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/media\/2166"}],"wp:attachment":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/media?parent=2164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/categories?post=2164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/tags?post=2164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}