{"id":427,"date":"2022-03-11T08:53:56","date_gmt":"2022-03-11T05:53:56","guid":{"rendered":"https:\/\/itbru.ru\/?p=427"},"modified":"2022-03-11T08:53:56","modified_gmt":"2022-03-11T05:53:56","slug":"docker-%d0%bb%d0%be%d0%b3-%d0%ba%d0%be%d0%bd%d1%82%d0%b5%d0%b9%d0%bd%d0%b5%d1%80%d0%b0-%d0%b7%d0%b0%d0%bd%d0%b8%d0%bc%d0%b0%d0%b5%d1%82-%d0%bc%d0%bd%d0%be%d0%b3%d0%be-%d0%bc%d0%b5%d1%81%d1%82%d0%b0","status":"publish","type":"post","link":"https:\/\/itbru.ru\/index.php\/2022\/03\/11\/docker-%d0%bb%d0%be%d0%b3-%d0%ba%d0%be%d0%bd%d1%82%d0%b5%d0%b9%d0%bd%d0%b5%d1%80%d0%b0-%d0%b7%d0%b0%d0%bd%d0%b8%d0%bc%d0%b0%d0%b5%d1%82-%d0%bc%d0%bd%d0%be%d0%b3%d0%be-%d0%bc%d0%b5%d1%81%d1%82%d0%b0\/","title":{"rendered":"Docker. \u041b\u043e\u0433 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430."},"content":{"rendered":"\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043b\u043e\u0433\u0438, \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b docker logs &lt;\u0438\u043c\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430>. \u0421\u0430\u043c \u043b\u043e\u0433 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 &#171;\/var\/lib\/docker\/containers\/&lt;id \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430>\/&lt;id \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430>-json.log&#187;. \u0427\u0435\u043c \u0434\u043e\u043b\u044c\u0448\u0435 \u0436\u0438\u0432\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0438 \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043b\u043e\u0433\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u043d\u0435\u043c &#8212; \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043b\u043e\u0433. \u0414\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u043e\u0442\u0430\u0446\u0438\u044e \u044d\u0442\u043e\u0433\u043e \u043b\u043e\u0433\u0430. \u0412 Docker \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0448\u0442\u0430\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438:<\/p>\n\n\n\n<p>\u0412 \u0444\u0430\u0439\u043b \/etc\/docker\/daemon.json \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c(\u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u043d\u0435\u0442 &#8212; \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n  \"log-driver\": \"json-file\",\r\n  \"log-opts\": {\r\n    \"max-size\": \"100m\",\r\n    \"max-file\": \"3\"\r\n  }\r\n}\r\n<\/code><\/pre>\n\n\n\n<p>max-size &#8212; \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u043b\u043e\u0433-\u0444\u0430\u0439\u043b\u0430<\/p>\n\n\n\n<p>max-file &#8212; \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0445\u0440\u0430\u043d\u0438\u0442\u044c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043b\u043e\u0433\u0438, \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b docker logs &lt;\u0438\u043c\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430>. \u0421\u0430\u043c \u043b\u043e\u0433 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 &#171;\/var\/lib\/docker\/containers\/&lt;id \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430>\/&lt;id \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430>-json.log&#187;. \u0427\u0435\u043c&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,17],"tags":[47,54,55],"class_list":["post-427","post","type-post","status-publish","format-standard","hentry","category-docker","category-linux","tag-docker","tag-logs","tag-55"],"_links":{"self":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts\/427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/comments?post=427"}],"version-history":[{"count":1,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts\/427\/revisions"}],"predecessor-version":[{"id":428,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts\/427\/revisions\/428"}],"wp:attachment":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/media?parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/categories?post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/tags?post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}