{"id":90508,"date":"2020-08-02T01:42:15","date_gmt":"2020-08-01T23:42:15","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/docker-i-vse-vse-vse"},"modified":"2020-08-02T01:42:15","modified_gmt":"2020-08-01T23:42:15","slug":"docker-i-vse-vse-vse","status":"publish","type":"post","link":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/docker-i-vse-vse-vse","title":{"rendered":"Docker und vieles mehr","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>TL;DR: \u043e\u0431\u0437\u043e\u0440\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f-\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u0440\u0435\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0411\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Docker \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0445\u043e\u0436\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Docker \u0438 \u0432\u0441\u0435, \u0432\u0441\u0435, \u0432\u0441\u0435\" src=\"\/wp-content\/uploads\/2020\/08\/490307b6a4754d8149f754e07b429f53.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<p>                        <b class=\"spoiler_title\">\u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0441\u0435 \u0432\u0437\u044f\u043b\u043e\u0441\u044c<\/b><\/p>\n<h2 id=\"istoriya\">\u0418\u0441\u0442\u043e\u0440\u0438\u044f<\/h2>\n<p><\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u043e\u0431\u0449\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f chroot. \u041e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u2014 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0435\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u0439, \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u041d\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u00ab\u0443\u0431\u0435\u0436\u0430\u0442\u044c\u00bb \u0438\u0437 chroot \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u0422\u0430\u043a\u0436\u0435 \u043a\u0440\u043e\u043c\u0435 \u0441\u043c\u0435\u043d\u044b \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b (\u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0442\u0438.<\/p>\n<p><\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u0437\u0430 \u0441\u0447\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 \u044f\u0434\u0440\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0412 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443, \u043d\u043e \u0441\u0443\u0442\u044c \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430 \u0436\u0435 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0442\u0435\u043c \u0436\u0435 \u044f\u0434\u0440\u043e\u043c, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u0421\u044e\u0434\u0430 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f FreeBSD Jails, Solaris Zones, OpenVZ \u0438 LXC \u0434\u043b\u044f Linux. \u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0443, \u043d\u043e \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u043f\u043e\u043b\u043e\u0441\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0438. \u041f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 chroot \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u043d\u0430\u0447\u0438\u043d\u043a\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u044f\u0434\u0435\u0440 (\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f Linux, \u0432 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u043c\u0435\u0440\u0435 FreeBSD) \u0435\u0441\u0442\u044c \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u0430\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u00ab\u043f\u0440\u043e\u0431\u0438\u0442\u0438\u044f\u00bb \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u044f\u0434\u0440\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<p><\/p>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 (\u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c \u0438 \u0442.\u043f.) \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c (\u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432). \u042d\u0442\u0430 \u0438\u0434\u0435\u044f \u0438 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u043b\u0430 \u043e\u0441\u043d\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043d\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u044f\u0440\u043a\u0438\u043c \u0438 \u043e\u0431\u0449\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f Docker. \u041f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u0438\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u0438 \u0441 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0434\u0430\u043b\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0435\u0434\u0438\u043d\u043e\u0439 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0438\u0437 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u2014 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438.<\/p>\n<p><\/p>\n<h2 id=\"docker\">Docker<\/h2>\n<p><\/p>\n<p>Docker \u044d\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 \u041f\u041e \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Go, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0448\u0442\u0430\u0442\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0434\u0440\u0430 Linux \u2014 cgroups, namespaces, capabilities \u0438 \u0442.\u043f., \u0430 \u0442\u0430\u043a\u0436\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Aufs \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Docker \u0438 \u0432\u0441\u0435, \u0432\u0441\u0435, \u0432\u0441\u0435\" src=\"\/wp-content\/uploads\/2020\/08\/603305735ece2fc1826025634b93e2c6.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<em>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: wikimedia<\/em><\/p>\n<p><\/p>\n<h3 id=\"arhitektura\">\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h3>\n<p><\/p>\n<p>\u0414\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.11 Docker \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432 \u0432\u0438\u0434\u0435 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u043b \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438: \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e API. \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 1.11 Docker \u0440\u0430\u0437\u0431\u0438\u043b\u0438 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u0435\u0439, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439: containerd, \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u0441\u0435\u0433\u043e \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 (\u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u0435\u0442\u044c\u044e, \u0437\u0430\u043f\u0443\u0441\u043a, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432) \u0438 runC, \u0441\u0440\u0435\u0434\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 cgroups \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u044f\u0434\u0440\u0430 Linux. \u0421\u0430\u043c \u0441\u0435\u0440\u0432\u0438\u0441 docker \u043e\u0441\u0442\u0430\u043b\u0441\u044f, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u0441\u043b\u0443\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e API, \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0432 containerd.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Docker \u0438 \u0432\u0441\u0435, \u0432\u0441\u0435, \u0432\u0441\u0435\" src=\"\/wp-content\/uploads\/2020\/08\/d686a3f94839f532e1d61b500c1cd699.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<h3 id=\"ustanovka-i-nastroyka\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h3>\n<p><\/p>\n<p>\u041c\u043e\u0438\u043c \u043b\u044e\u0431\u0438\u043c\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 docker \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f docker-machine, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u0440\u043e\u043c\u0435 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 docker \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430) \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434.<\/p>\n<p><\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u0441 2018 \u0433\u043e\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0448\u0442\u0430\u0442\u043d\u044b\u043c \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Linux \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/p>\n<p><\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043f\u0440\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Ansible \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u043d\u043e \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0435\u0433\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443.<\/p>\n<p><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 Centos 7, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443, \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0438\u0436\u0435:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># yum install -y yum-utils\n# yum-config-manager --add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo\n# yum install docker-ce docker-ce-cli containerd.io<\/code><\/pre>\n<p><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430\u0434\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># systemctl enable docker\n# systemctl start docker\n# firewall-cmd --zone=public --add-port=2377\/tcp --permanent<\/code><\/pre>\n<p><\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443 docker, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 docker \u0431\u0435\u0437 sudo, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a API \u0438\u0437\u0432\u043d\u0435, \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c firewall (\u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e, \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0432\u044b\u0448\u0435 \u0438 \u043d\u0438\u0436\u0435 \u2014 \u044f \u044d\u0442\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0438 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438), \u043d\u043e \u0442\u0443\u0442 \u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043d\u0435 \u0431\u0443\u0434\u0443 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p><\/p>\n<h3 id=\"drugie-vozmozhnosti\">\u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p><\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0432\u044b\u0448\u0435\u043d\u0430\u0437\u0432\u0430\u043d\u043d\u043e\u0439 docker machine \u0435\u0449\u0435 \u0435\u0441\u0442\u044c docker registry, \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 docker compose \u2014 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b YAML \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0435\u0442\u0438, \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445). <\/p>\n<p><\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u044b \u0434\u043b\u044f CICD. \u0414\u0440\u0443\u0433\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u2014 \u0440\u0430\u0431\u043e\u0442\u0430 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 swarm mode (\u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.12 \u0431\u044b\u043b \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043a\u0430\u043a docker swarm), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0435\u0434\u0438\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u043f\u043e\u0432\u0435\u0440\u0445 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0435\u0441\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. <\/p>\n<p><\/p>\n<p>\u0424\u0430\u0439\u043b\u044b YAML \u043e\u0442 docker compose \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044f \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u043b\u044b\u0445 \u0438 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439. \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Kubernetes, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0437\u0430\u0442\u0440\u0430\u0442\u044b \u043d\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 swarm mode \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0432\u0437\u043e\u0439\u0442\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0441 Kubernetes. \u041a\u0440\u043e\u043c\u0435 runC \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0440\u0435\u0434\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/489940\/\">Kata containers<\/a><\/noindex><\/p>\n<p><\/p>\n<h3 id=\"rabota-s-docker\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Docker<\/h3>\n<p><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0435\u043c GitLab \u0438 Docker Registry \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0424\u0421 GlusterFS, \u0435\u0435 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 docker volumes, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0447\u0438\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 docker registry. \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430: Docker Registry, Postgresql, Redis, GitLab \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 GitLab Runner \u043f\u043e\u0432\u0435\u0440\u0445 Swarm. Postgresql \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/sorintlab\/stolon\">Stolon<\/a><\/noindex>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 Postgresql \u043d\u0435 \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GlusterFS. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 GlusterFS.<\/p>\n<p><\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f GlusterFS \u043d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 (\u043e\u043d\u0438 \u0438\u043c\u0435\u043d\u0443\u044e\u0442\u0441\u044f node1, node2, node3) \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b, \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 firewall, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># yum -y install centos-release-gluster7\n# yum -y install glusterfs-server\n# systemctl enable glusterd\n# systemctl start glusterd\n# firewall-cmd --add-service=glusterfs --permanent\n# firewall-cmd --reload\n# mkdir -p \/srv\/gluster\n# mkdir -p \/srv\/docker\n# echo &quot;$(hostname):\/docker \/srv\/docker glusterfs defaults,_netdev 0 0&quot; &gt;&gt; \/etc\/fstab<\/code><\/pre>\n<p><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 GlusterFS \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 node1:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># gluster peer probe node2\n# gluster peer probe node3\n# gluster volume create docker replica 3 node1:\/srv\/gluster node2:\/srv\/gluster node3:\/srv\/gluster force\n# gluster volume start docker<\/code><\/pre>\n<p><\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0434\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 volume (\u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445):<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># mount \/srv\/docker<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 swarm mode \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 Leader, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c\u0441\u044f \u043a \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445.<\/p>\n<p><\/p>\n<p>\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u043d\u0430 node1:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker swarm init\nSwarm initialized: current node (a5jpfrh5uvo7svzz1ajduokyq) is now a manager.\n\nTo add a worker to this swarm, run the following command:\n\n    docker swarm join --token SWMTKN-1-0c5mf7mvzc7o7vjk0wngno2dy70xs95tovfxbv4tqt9280toku-863hyosdlzvd76trfptd4xnzd xx.xx.xx.xx:2377\n\nTo add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.\n# docker swarm join-token manager<\/code><\/pre>\n<p><\/p>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043d\u0430 node2 \u0438 node3:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker swarm join --token SWMTKN-x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxx xx.xx.xx.xx:2377\nThis node joined a swarm as a manager.<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0441 node1, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0438\u043d\u0430\u0447\u0435.<\/p>\n<p><\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker network create --driver=overlay etcd\n# docker network create --driver=overlay pgsql\n# docker network create --driver=overlay redis\n# docker network create --driver=overlay traefik\n# docker network create --driver=overlay gitlab<\/code><\/pre>\n<p><\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker node update --label-add nodename=node1 node1\n# docker node update --label-add nodename=node2 node2\n# docker node update --label-add nodename=node3 node3<\/code><\/pre>\n<p><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 etcd, KV-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f Traefik \u0438 Stolon. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e Postgresql \u044d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># mkdir -p \/srv\/etcd<\/code><\/pre>\n<p><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 etcd \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0433\u043e:<\/p>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">00etcd.yml<\/b><\/p>\n<pre><code class=\"plaintext\">version: '3.7'\n\nservices:\n  etcd1:\n    image: quay.io\/coreos\/etcd:latest\n    hostname: etcd1\n    command:\n      - etcd\n      - --name=etcd1\n      - --data-dir=\/data.etcd\n      - --advertise-client-urls=http:\/\/etcd1:2379\n      - --listen-client-urls=http:\/\/0.0.0.0:2379\n      - --initial-advertise-peer-urls=http:\/\/etcd1:2380\n      - --listen-peer-urls=http:\/\/0.0.0.0:2380\n      - --initial-cluster=etcd1=http:\/\/etcd1:2380,etcd2=http:\/\/etcd2:2380,etcd3=http:\/\/etcd3:2380\n      - --initial-cluster-state=new\n      - --initial-cluster-token=etcd-cluster\n    networks:\n      - etcd\n    volumes:\n      - etcd1vol:\/data.etcd\n    deploy:\n      replicas: 1\n      placement:\n        constraints: [node.labels.nodename == node1]\n  etcd2:\n    image: quay.io\/coreos\/etcd:latest\n    hostname: etcd2\n    command:\n      - etcd\n      - --name=etcd2\n      - --data-dir=\/data.etcd\n      - --advertise-client-urls=http:\/\/etcd2:2379\n      - --listen-client-urls=http:\/\/0.0.0.0:2379\n      - --initial-advertise-peer-urls=http:\/\/etcd2:2380\n      - --listen-peer-urls=http:\/\/0.0.0.0:2380\n      - --initial-cluster=etcd1=http:\/\/etcd1:2380,etcd2=http:\/\/etcd2:2380,etcd3=http:\/\/etcd3:2380\n      - --initial-cluster-state=new\n      - --initial-cluster-token=etcd-cluster\n    networks:\n      - etcd\n    volumes:\n      - etcd2vol:\/data.etcd\n    deploy:\n      replicas: 1\n      placement:\n        constraints: [node.labels.nodename == node2]\n  etcd3:\n    image: quay.io\/coreos\/etcd:latest\n    hostname: etcd3\n    command:\n      - etcd\n      - --name=etcd3\n      - --data-dir=\/data.etcd\n      - --advertise-client-urls=http:\/\/etcd3:2379\n      - --listen-client-urls=http:\/\/0.0.0.0:2379\n      - --initial-advertise-peer-urls=http:\/\/etcd3:2380\n      - --listen-peer-urls=http:\/\/0.0.0.0:2380\n      - --initial-cluster=etcd1=http:\/\/etcd1:2380,etcd2=http:\/\/etcd2:2380,etcd3=http:\/\/etcd3:2380\n      - --initial-cluster-state=new\n      - --initial-cluster-token=etcd-cluster\n    networks:\n      - etcd\n    volumes:\n      - etcd3vol:\/data.etcd\n    deploy:\n      replicas: 1\n      placement:\n        constraints: [node.labels.nodename == node3]\n\nvolumes:\n  etcd1vol:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/etcd&quot;\n  etcd2vol:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/etcd&quot;\n  etcd3vol:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/etcd&quot;\n\nnetworks:\n  etcd:\n    external: true<\/code><\/pre>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker stack deploy --compose-file 00etcd.yml etcd<\/code><\/pre>\n<p><\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u0434\u043d\u044f\u043b\u0441\u044f etcd \u043a\u043b\u0430\u0441\u0442\u0435\u0440:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker exec $(docker ps | awk '\/etcd\/ {print $1}')  etcdctl member list\nade526d28b1f92f7: name=etcd1 peerURLs=http:\/\/etcd1:2380 clientURLs=http:\/\/etcd1:2379 isLeader=false\nbd388e7810915853: name=etcd3 peerURLs=http:\/\/etcd3:2380 clientURLs=http:\/\/etcd3:2379 isLeader=false\nd282ac2ce600c1ce: name=etcd2 peerURLs=http:\/\/etcd2:2380 clientURLs=http:\/\/etcd2:2379 isLeader=true\n# docker exec $(docker ps | awk '\/etcd\/ {print $1}')  etcdctl cluster-health\nmember ade526d28b1f92f7 is healthy: got healthy result from http:\/\/etcd1:2379\nmember bd388e7810915853 is healthy: got healthy result from http:\/\/etcd3:2379\nmember d282ac2ce600c1ce is healthy: got healthy result from http:\/\/etcd2:2379\ncluster is healthy<\/code><\/pre>\n<p><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0434\u043b\u044f Postgresql, \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># mkdir -p \/srv\/pgsql<\/code><\/pre>\n<p><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Postgresql:<\/p>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">01pgsql.yml<\/b><\/p>\n<pre><code class=\"plaintext\">version: '3.7'\n\nservices:\n  pgsentinel:\n    image: sorintlab\/stolon:master-pg10\n    command:\n      - gosu\n      - stolon\n      - stolon-sentinel\n      - --cluster-name=stolon-cluster\n      - --store-backend=etcdv3\n      - --store-endpoints=http:\/\/etcd1:2379,http:\/\/etcd2:2379,http:\/\/etcd3:2379\n      - --log-level=debug\n    networks:\n      - etcd\n      - pgsql\n    deploy:\n      replicas: 3\n      update_config:\n        parallelism: 1\n        delay: 30s\n        order: stop-first\n        failure_action: pause\n  pgkeeper1:\n    image: sorintlab\/stolon:master-pg10\n    hostname: pgkeeper1\n    command:\n      - gosu\n      - stolon\n      - stolon-keeper\n      - --pg-listen-address=pgkeeper1\n      - --pg-repl-username=replica\n      - --uid=pgkeeper1\n      - --pg-su-username=postgres\n      - --pg-su-passwordfile=\/run\/secrets\/pgsql\n      - --pg-repl-passwordfile=\/run\/secrets\/pgsql_repl\n      - --data-dir=\/var\/lib\/postgresql\/data\n      - --cluster-name=stolon-cluster\n      - --store-backend=etcdv3\n      - --store-endpoints=http:\/\/etcd1:2379,http:\/\/etcd2:2379,http:\/\/etcd3:2379\n    networks:\n      - etcd\n      - pgsql\n    environment:\n      - PGDATA=\/var\/lib\/postgresql\/data\n    volumes:\n      - pgkeeper1:\/var\/lib\/postgresql\/data\n    secrets:\n      - pgsql\n      - pgsql_repl\n    deploy:\n      replicas: 1\n      placement:\n        constraints: [node.labels.nodename == node1]\n  pgkeeper2:\n    image: sorintlab\/stolon:master-pg10\n    hostname: pgkeeper2\n    command:\n      - gosu\n      - stolon \n      - stolon-keeper\n      - --pg-listen-address=pgkeeper2\n      - --pg-repl-username=replica\n      - --uid=pgkeeper2\n      - --pg-su-username=postgres\n      - --pg-su-passwordfile=\/run\/secrets\/pgsql\n      - --pg-repl-passwordfile=\/run\/secrets\/pgsql_repl\n      - --data-dir=\/var\/lib\/postgresql\/data\n      - --cluster-name=stolon-cluster\n      - --store-backend=etcdv3\n      - --store-endpoints=http:\/\/etcd1:2379,http:\/\/etcd2:2379,http:\/\/etcd3:2379\n    networks:\n      - etcd\n      - pgsql\n    environment:\n      - PGDATA=\/var\/lib\/postgresql\/data\n    volumes:\n      - pgkeeper2:\/var\/lib\/postgresql\/data\n    secrets:\n      - pgsql\n      - pgsql_repl\n    deploy:\n      replicas: 1\n      placement:\n        constraints: [node.labels.nodename == node2]\n  pgkeeper3:\n    image: sorintlab\/stolon:master-pg10\n    hostname: pgkeeper3\n    command:\n      - gosu\n      - stolon \n      - stolon-keeper\n      - --pg-listen-address=pgkeeper3\n      - --pg-repl-username=replica\n      - --uid=pgkeeper3\n      - --pg-su-username=postgres\n      - --pg-su-passwordfile=\/run\/secrets\/pgsql\n      - --pg-repl-passwordfile=\/run\/secrets\/pgsql_repl\n      - --data-dir=\/var\/lib\/postgresql\/data\n      - --cluster-name=stolon-cluster\n      - --store-backend=etcdv3\n      - --store-endpoints=http:\/\/etcd1:2379,http:\/\/etcd2:2379,http:\/\/etcd3:2379\n    networks:\n      - etcd\n      - pgsql\n    environment:\n      - PGDATA=\/var\/lib\/postgresql\/data\n    volumes:\n      - pgkeeper3:\/var\/lib\/postgresql\/data\n    secrets:\n      - pgsql\n      - pgsql_repl\n    deploy:\n      replicas: 1\n      placement:\n        constraints: [node.labels.nodename == node3]\n  postgresql:\n    image: sorintlab\/stolon:master-pg10\n    command: gosu stolon stolon-proxy --listen-address 0.0.0.0 --cluster-name stolon-cluster --store-backend=etcdv3 --store-endpoints http:\/\/etcd1:2379,http:\/\/etcd2:2379,http:\/\/etcd3:2379\n    networks:\n      - etcd\n      - pgsql\n    deploy:\n      replicas: 3\n      update_config:\n        parallelism: 1\n        delay: 30s\n        order: stop-first\n        failure_action: rollback\n\nvolumes:\n  pgkeeper1:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/pgsql&quot;\n  pgkeeper2:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/pgsql&quot;\n  pgkeeper3:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/pgsql&quot;\n\nsecrets:\n  pgsql:\n    file: &quot;\/srv\/docker\/postgres&quot;\n  pgsql_repl:\n    file: &quot;\/srv\/docker\/replica&quot;\n\nnetworks:\n  etcd:\n    external: true\n  pgsql:\n    external: true<\/code><\/pre>\n<p><\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u043a\u0440\u0435\u0442\u044b, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0444\u0430\u0439\u043b:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># &lt;\/dev\/urandom tr -dc 234567890qwertyuopasdfghjkzxcvbnmQWERTYUPASDFGHKLZXCVBNM | head -c $(((RANDOM%3)+15)) &gt; \/srv\/docker\/replica\n# &lt;\/dev\/urandom tr -dc 234567890qwertyuopasdfghjkzxcvbnmQWERTYUPASDFGHKLZXCVBNM | head -c $(((RANDOM%3)+15)) &gt; \/srv\/docker\/postgres\n# docker stack deploy --compose-file 01pgsql.yml pgsql<\/code><\/pre>\n<p><\/p>\n<p>\u0421\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f (\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <em>docker service ls<\/em>, \u0447\u0442\u043e \u043f\u043e\u0434\u043d\u044f\u043b\u0438\u0441\u044c \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b) \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Postgresql:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker exec $(docker ps | awk '\/pgkeeper\/ {print $1}') stolonctl --cluster-name=stolon-cluster --store-backend=etcdv3 --store-endpoints=http:\/\/etcd1:2379,http:\/\/etcd2:2379,http:\/\/etcd3:2379 init<\/code><\/pre>\n<p><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043d\u043e\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 Postgresql:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker exec $(docker ps | awk '\/pgkeeper\/ {print $1}') stolonctl --cluster-name=stolon-cluster --store-backend=etcdv3 --store-endpoints=http:\/\/etcd1:2379,http:\/\/etcd2:2379,http:\/\/etcd3:2379 status\n=== Active sentinels ===\n\nID      LEADER\n26baa11d    false\n74e98768    false\na8cb002b    true\n\n=== Active proxies ===\n\nID\n4d233826\n9f562f3b\nb0c79ff1\n\n=== Keepers ===\n\nUID     HEALTHY PG LISTENADDRESS    PG HEALTHY  PG WANTEDGENERATION PG CURRENTGENERATION\npgkeeper1   true    pgkeeper1:5432         true     2           2\npgkeeper2   true    pgkeeper2:5432          true            2                   2\npgkeeper3   true    pgkeeper3:5432          true            3                   3\n\n=== Cluster Info ===\n\nMaster Keeper: pgkeeper3\n\n===== Keepers\/DB tree =====\n\npgkeeper3 (master)\n\u251c\u2500pgkeeper2\n\u2514\u2500pgkeeper1\n<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c traefik \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c \u0438\u0437\u0432\u043d\u0435:<\/p>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">03traefik.yml<\/b><\/p>\n<pre><code class=\"plaintext\">version: '3.7'\n\nservices:\n  traefik:\n    image: traefik:latest\n    command: &gt;\n      --log.level=INFO\n      --providers.docker=true\n      --entryPoints.web.address=:80\n      --providers.providersThrottleDuration=2\n      --providers.docker.watch=true\n      --providers.docker.swarmMode=true\n      --providers.docker.swarmModeRefreshSeconds=15s\n      --providers.docker.exposedbydefault=false\n      --accessLog.bufferingSize=0\n      --api=true\n      --api.dashboard=true\n      --api.insecure=true\n    networks:\n      - traefik\n    ports:\n      - 80:80\n    volumes:\n      - \/var\/run\/docker.sock:\/var\/run\/docker.sock\n    deploy:\n      replicas: 3\n      placement:\n        constraints:\n          - node.role == manager\n        preferences:\n          - spread: node.id\n      labels:\n        - traefik.enable=true\n        - traefik.http.routers.traefik.rule=Host(`traefik.example.com`)\n        - traefik.http.services.traefik.loadbalancer.server.port=8080\n        - traefik.docker.network=traefik\n\nnetworks:\n  traefik:\n    external: true<\/code><\/pre>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker stack deploy --compose-file 03traefik.yml traefik<\/code><\/pre>\n<p><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Redis Cluster, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430 \u0432\u0441\u0435\u0445 \u0443\u0437\u043b\u0430\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># mkdir -p \/srv\/redis<\/code><\/pre>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">05redis.yml<\/b><\/p>\n<pre><code class=\"plaintext\">version: '3.7'\n\nservices:\n  redis-master:\n    image: 'bitnami\/redis:latest'\n    networks:\n      - redis\n    ports:\n      - '6379:6379'\n    environment:\n      - REDIS_REPLICATION_MODE=master\n      - REDIS_PASSWORD=xxxxxxxxxxx\n    deploy:\n      mode: global\n      restart_policy:\n        condition: any\n    volumes:\n      - 'redis:\/opt\/bitnami\/redis\/etc\/'\n\n  redis-replica:\n    image: 'bitnami\/redis:latest'\n    networks:\n      - redis\n    ports:\n      - '6379'\n    depends_on:\n      - redis-master\n    environment:\n      - REDIS_REPLICATION_MODE=slave\n      - REDIS_MASTER_HOST=redis-master\n      - REDIS_MASTER_PORT_NUMBER=6379\n      - REDIS_MASTER_PASSWORD=xxxxxxxxxxx\n      - REDIS_PASSWORD=xxxxxxxxxxx\n    deploy:\n      mode: replicated\n      replicas: 3\n      update_config:\n        parallelism: 1\n        delay: 10s\n      restart_policy:\n        condition: any\n\n  redis-sentinel:\n    image: 'bitnami\/redis:latest'\n    networks:\n      - redis\n    ports:\n      - '16379'\n    depends_on:\n      - redis-master\n      - redis-replica\n    entrypoint: |\n      bash -c 'bash -s &lt;&lt;EOF\n      &quot;\/bin\/bash&quot; -c &quot;cat &lt;&lt;EOF &gt; \/opt\/bitnami\/redis\/etc\/sentinel.conf\n      port 16379\n      dir \/tmp\n      sentinel monitor master-node redis-master 6379 2\n      sentinel down-after-milliseconds master-node 5000\n      sentinel parallel-syncs master-node 1\n      sentinel failover-timeout master-node 5000\n      sentinel auth-pass master-node xxxxxxxxxxx\n      sentinel announce-ip redis-sentinel\n      sentinel announce-port 16379\n      EOF&quot;\n      &quot;\/bin\/bash&quot; -c &quot;redis-sentinel \/opt\/bitnami\/redis\/etc\/sentinel.conf&quot;\n      EOF'\n    deploy:\n      mode: global\n      restart_policy:\n        condition: any\n\nvolumes:\n  redis:\n    driver: local\n    driver_opts:\n      type: 'none'\n      o: 'bind'\n      device: &quot;\/srv\/redis&quot;\n\nnetworks:\n  redis:\n    external: true<\/code><\/pre>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker stack deploy --compose-file 05redis.yml redis<\/code><\/pre>\n<p><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Docker Registry:<\/p>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">06registry.yml<\/b><\/p>\n<pre><code class=\"plaintext\">version: '3.7'\n\nservices:\n  registry:\n    image: registry:2.6\n    networks:\n      - traefik\n    volumes:\n      - registry_data:\/var\/lib\/registry\n    deploy:\n      replicas: 1\n      placement:\n        constraints: [node.role == manager]\n      restart_policy:\n        condition: on-failure\n      labels:\n        - traefik.enable=true\n        - traefik.http.routers.registry.rule=Host(`registry.example.com`)\n        - traefik.http.services.registry.loadbalancer.server.port=5000\n        - traefik.docker.network=traefik\n\nvolumes:\n  registry_data:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/docker\/registry&quot;\n\nnetworks:\n  traefik:\n    external: true<\/code><\/pre>\n<p><\/p>\n<pre><code class=\"plaintext\"># mkdir \/srv\/docker\/registry\n# docker stack deploy --compose-file 06registry.yml registry<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u2014 GitLab:<\/p>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">08gitlab-runner.yml<\/b><\/p>\n<pre><code class=\"plaintext\">version: '3.7'\n\nservices:\n  gitlab:\n    image: gitlab\/gitlab-ce:latest\n    networks:\n      - pgsql\n      - redis\n      - traefik\n      - gitlab\n    ports:\n      - 22222:22\n    environment:\n      GITLAB_OMNIBUS_CONFIG: |\n        postgresql['enable'] = false\n        redis['enable'] = false\n        gitlab_rails['registry_enabled'] = false\n        gitlab_rails['db_username'] = &quot;gitlab&quot;\n        gitlab_rails['db_password'] = &quot;XXXXXXXXXXX&quot;\n        gitlab_rails['db_host'] = &quot;postgresql&quot;\n        gitlab_rails['db_port'] = &quot;5432&quot;\n        gitlab_rails['db_database'] = &quot;gitlab&quot;\n        gitlab_rails['db_adapter'] = 'postgresql'\n        gitlab_rails['db_encoding'] = 'utf8'\n        gitlab_rails['redis_host'] = 'redis-master'\n        gitlab_rails['redis_port'] = '6379'\n        gitlab_rails['redis_password'] = 'xxxxxxxxxxx'\n        gitlab_rails['smtp_enable'] = true\n        gitlab_rails['smtp_address'] = &quot;smtp.yandex.ru&quot;\n        gitlab_rails['smtp_port'] = 465\n        gitlab_rails['smtp_user_name'] = &quot;noreply@example.com&quot;\n        gitlab_rails['smtp_password'] = &quot;xxxxxxxxx&quot;\n        gitlab_rails['smtp_domain'] = &quot;example.com&quot;\n        gitlab_rails['gitlab_email_from'] = 'noreply@example.com'\n        gitlab_rails['smtp_authentication'] = &quot;login&quot;\n        gitlab_rails['smtp_tls'] = true\n        gitlab_rails['smtp_enable_starttls_auto'] = true\n        gitlab_rails['smtp_openssl_verify_mode'] = 'peer'\n        external_url 'http:\/\/gitlab.example.com\/'\n        gitlab_rails['gitlab_shell_ssh_port'] = 22222\n    volumes:\n      - gitlab_conf:\/etc\/gitlab\n      - gitlab_logs:\/var\/log\/gitlab\n      - gitlab_data:\/var\/opt\/gitlab\n    deploy:\n      mode: replicated\n      replicas: 1\n      placement:\n        constraints:\n        - node.role == manager\n      labels:\n        - traefik.enable=true\n        - traefik.http.routers.gitlab.rule=Host(`gitlab.example.com`)\n        - traefik.http.services.gitlab.loadbalancer.server.port=80\n        - traefik.docker.network=traefik\n  gitlab-runner:\n    image: gitlab\/gitlab-runner:latest\n    networks:\n      - gitlab\n    volumes:\n      - gitlab_runner_conf:\/etc\/gitlab\n      - \/var\/run\/docker.sock:\/var\/run\/docker.sock\n    deploy:\n      mode: replicated\n      replicas: 1\n      placement:\n        constraints:\n        - node.role == manager\n\nvolumes:\n  gitlab_conf:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/docker\/gitlab\/conf&quot;\n  gitlab_logs:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/docker\/gitlab\/logs&quot;\n  gitlab_data:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/docker\/gitlab\/data&quot;\n  gitlab_runner_conf:\n    driver: local\n    driver_opts:\n      type: none\n      o: bind\n      device: &quot;\/srv\/docker\/gitlab\/runner&quot;\n\nnetworks:\n  pgsql:\n    external: true\n  redis:\n    external: true\n  traefik:\n    external: true\n  gitlab:\n    external: true<\/code><\/pre>\n<p><\/p>\n<pre><code class=\"plaintext\"># mkdir -p \/srv\/docker\/gitlab\/conf\n# mkdir -p \/srv\/docker\/gitlab\/logs\n# mkdir -p \/srv\/docker\/gitlab\/data\n# mkdir -p \/srv\/docker\/gitlab\/runner\n# docker stack deploy --compose-file 08gitlab-runner.yml gitlab<\/code><\/pre>\n<p><\/p>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># docker service ls\nID                  NAME                   MODE                REPLICAS            IMAGE                          PORTS\nlef9n3m92buq        etcd_etcd1             replicated          1\/1                 quay.io\/coreos\/etcd:latest\nij6uyyo792x5        etcd_etcd2             replicated          1\/1                 quay.io\/coreos\/etcd:latest\nfqttqpjgp6pp        etcd_etcd3             replicated          1\/1                 quay.io\/coreos\/etcd:latest\nhq5iyga28w33        gitlab_gitlab          replicated          1\/1                 gitlab\/gitlab-ce:latest        *:22222-&gt;22\/tcp\ndt7s6vs0q4qc        gitlab_gitlab-runner   replicated          1\/1                 gitlab\/gitlab-runner:latest\nk7uoezno0h9n        pgsql_pgkeeper1        replicated          1\/1                 sorintlab\/stolon:master-pg10\ncnrwul4r4nse        pgsql_pgkeeper2        replicated          1\/1                 sorintlab\/stolon:master-pg10\nfrflfnpty7tr        pgsql_pgkeeper3        replicated          1\/1                 sorintlab\/stolon:master-pg10\nx7pqqchi52kq        pgsql_pgsentinel       replicated          3\/3                 sorintlab\/stolon:master-pg10\nmwu2wl8fti4r        pgsql_postgresql       replicated          3\/3                 sorintlab\/stolon:master-pg10\n9hkbe2vksbzb        redis_redis-master     global              3\/3                 bitnami\/redis:latest           *:6379-&gt;6379\/tcp\nl88zn8cla7dc        redis_redis-replica    replicated          3\/3                 bitnami\/redis:latest           *:30003-&gt;6379\/tcp\n1utp309xfmsy        redis_redis-sentinel   global              3\/3                 bitnami\/redis:latest           *:30002-&gt;16379\/tcp\noteb824ylhyp        registry_registry      replicated          1\/1                 registry:2.6\nqovrah8nzzu8        traefik_traefik        replicated          3\/3                 traefik:latest                 *:80-&gt;80\/tcp, *:443-&gt;443\/tcp<\/code><\/pre>\n<p><\/p>\n<p>\u0427\u0442\u043e \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c? \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432 Traefik \u0440\u0430\u0431\u043e\u0442\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u043f\u043e https, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 tls \u0434\u043b\u044f Postgresql \u0438 Redis. \u041d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 PoC. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b Docker.<\/p>\n<p><\/p>\n<h2 id=\"podman\">Podman<\/h2>\n<p><\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 engine \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043f\u043e\u0434\u0430\u043c (pods, \u0433\u0440\u0443\u043f\u043f\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0445 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e). \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Docker \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 libpod. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Go, \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 OCI-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u043c runtime \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 runC.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"Docker \u0438 \u0432\u0441\u0435, \u0432\u0441\u0435, \u0432\u0441\u0435\" src=\"\/wp-content\/uploads\/2020\/08\/626a4d84a9e585e3a4e372a82ffb1a41.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Podman \u0432 \u0446\u0435\u043b\u043e\u043c \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0442\u0430\u043a\u043e\u0432\u0443\u044e \u0434\u043b\u044f Docker, \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a (\u0437\u0430\u044f\u0432\u043b\u0435\u043d\u043e \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432\u0448\u0438\u0445, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0438 \u0438 \u0430\u0432\u0442\u043e\u0440\u043e\u043c \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438):<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">$ alias docker=podman<\/code><\/pre>\n<p><\/p>\n<p>\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0412 \u0446\u0435\u043b\u043e\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 Podman \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f, \u0432\u0435\u0434\u044c \u0435\u0441\u043b\u0438 \u0440\u0430\u043d\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Kubernetes \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441 Docker, \u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 2015 \u0433\u043e\u0434\u0430, \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0438\u0440\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 (OCI \u2014 Open Container Initiative) \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f Docker \u043d\u0430 containerd \u0438 runC, \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 Docker \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432 Kubernetes: CRI-O. Podman \u0432 \u044d\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043e\u0439 Docker, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c Kubernetes, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u043f\u043e \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u043d\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0432 \u0441\u0442\u0438\u043b\u0435 Docker \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u041f\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f swarm mode, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u044f\u0432\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u2014 \u0431\u0435\u0440\u0438\u0442\u0435 Kubernetes.<\/p>\n<p><\/p>\n<h3 id=\"ustanovka\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p><\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 Centos 7 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Extras, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># yum -y install podman<\/code><\/pre>\n<p><\/p>\n<h3 id=\"drugie-vozmozhnosti-1\">\u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p><\/p>\n<p>Podman \u043c\u043e\u0436\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044e\u043d\u0438\u0442\u044b \u0434\u043b\u044f systemd, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0435\u0448\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 systemd \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 pid 1 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435. \u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0438\u0434\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 buildah, \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u2014 \u0430\u043d\u0430\u043b\u043e\u0433\u0438 docker-compose, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0435 \u0441 Kubernetes, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0441 Podman \u043d\u0430 Kubernetes \u0443\u043f\u0440\u043e\u0449\u0435\u043d \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p><\/p>\n<h3 id=\"rabota-s-podman\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Podman<\/h3>\n<p><\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0435\u0442 swarm mode (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 Kubernetes, \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440) \u2014 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438.<\/p>\n<p><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c podman-compose:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># yum -y install python3-pip\n# pip3 install podman-compose<\/code><\/pre>\n<p><\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f podman \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f, \u0442\u0430\u043a \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u043a\u0446\u0438\u044e volumes \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u0441\u0435\u043a\u0446\u0438\u044e \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438.<\/p>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">gitlab-podman.yml<\/b><\/p>\n<pre><code class=\"plaintext\">version: '3.7'\n\nservices:\n  gitlab:\n    image: gitlab\/gitlab-ce:latest\n    hostname: gitlab.example.com\n    restart: unless-stopped\n    environment:\n      GITLAB_OMNIBUS_CONFIG: |\n        gitlab_rails['gitlab_shell_ssh_port'] = 22222\n    ports:\n      - &quot;80:80&quot;\n      - &quot;22222:22&quot;\n    volumes:\n      - \/srv\/podman\/gitlab\/conf:\/etc\/gitlab\n      - \/srv\/podman\/gitlab\/data:\/var\/opt\/gitlab\n      - \/srv\/podman\/gitlab\/logs:\/var\/log\/gitlab\n    networks:\n      - gitlab\n\n  gitlab-runner:\n    image: gitlab\/gitlab-runner:alpine\n    restart: unless-stopped\n    depends_on:\n      - gitlab\n    volumes:\n      - \/srv\/podman\/gitlab\/runner:\/etc\/gitlab-runner\n      - \/var\/run\/docker.sock:\/var\/run\/docker.sock\n    networks:\n      - gitlab\n\nnetworks:\n  gitlab:<\/code><\/pre>\n<p><\/p>\n<pre><code class=\"plaintext\"># podman-compose -f gitlab-runner.yml -d up<\/code><\/pre>\n<p><\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># podman ps\nCONTAINER ID  IMAGE                                  COMMAND               CREATED             STATUS                 PORTS                                      NAMES\nda53da946c01  docker.io\/gitlab\/gitlab-runner:alpine  run --user=gitlab...  About a minute ago  Up About a minute ago  0.0.0.0:22222-&gt;22\/tcp, 0.0.0.0:80-&gt;80\/tcp  root_gitlab-runner_1\n781c0103c94a  docker.io\/gitlab\/gitlab-ce:latest      \/assets\/wrapper       About a minute ago  Up About a minute ago  0.0.0.0:22222-&gt;22\/tcp, 0.0.0.0:80-&gt;80\/tcp  root_gitlab_1<\/code><\/pre>\n<p><\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043e\u043d \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u043b\u044f systemd \u0438 kubernetes, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0438\u043c\u044f \u0438\u043b\u0438 id \u043f\u043e\u0434\u0430:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># podman pod ls\nPOD ID         NAME   STATUS    CREATED          # OF CONTAINERS   INFRA ID\n71fc2b2a5c63   root   Running   11 minutes ago   3                 db40ab8bf84b<\/code><\/pre>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">Kubernetes:<\/b><\/p>\n<pre><code class=\"plaintext\"># podman generate kube 71fc2b2a5c63\n# Generation of Kubernetes YAML is still under development!\n#\n# Save the output of this file and use kubectl create -f to import\n# it into Kubernetes.\n#\n# Created with podman-1.6.4\napiVersion: v1\nkind: Pod\nmetadata:\n  creationTimestamp: &quot;2020-07-29T19:22:40Z&quot;\n  labels:\n    app: root\n  name: root\nspec:\n  containers:\n  - command:\n    - \/assets\/wrapper\n    env:\n    - name: PATH\n      value: \/opt\/gitlab\/embedded\/bin:\/opt\/gitlab\/bin:\/assets:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin\n    - name: TERM\n      value: xterm\n    - name: HOSTNAME\n      value: gitlab.example.com\n    - name: container\n      value: podman\n    - name: GITLAB_OMNIBUS_CONFIG\n      value: |\n        gitlab_rails['gitlab_shell_ssh_port'] = 22222\n    - name: LANG\n      value: C.UTF-8\n    image: docker.io\/gitlab\/gitlab-ce:latest\n    name: rootgitlab1\n    ports:\n    - containerPort: 22\n      hostPort: 22222\n      protocol: TCP\n    - containerPort: 80\n      hostPort: 80\n      protocol: TCP\n    resources: {}\n    securityContext:\n      allowPrivilegeEscalation: true\n      capabilities: {}\n      privileged: false\n      readOnlyRootFilesystem: false\n    volumeMounts:\n    - mountPath: \/var\/opt\/gitlab\n      name: srv-podman-gitlab-data\n    - mountPath: \/var\/log\/gitlab\n      name: srv-podman-gitlab-logs\n    - mountPath: \/etc\/gitlab\n      name: srv-podman-gitlab-conf\n    workingDir: \/\n  - command:\n    - run\n    - --user=gitlab-runner\n    - --working-directory=\/home\/gitlab-runner\n    env:\n    - name: PATH\n      value: \/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin\n    - name: TERM\n      value: xterm\n    - name: HOSTNAME\n    - name: container\n      value: podman\n    image: docker.io\/gitlab\/gitlab-runner:alpine\n    name: rootgitlab-runner1\n    resources: {}\n    securityContext:\n      allowPrivilegeEscalation: true\n      capabilities: {}\n      privileged: false\n      readOnlyRootFilesystem: false\n    volumeMounts:\n    - mountPath: \/etc\/gitlab-runner\n      name: srv-podman-gitlab-runner\n    - mountPath: \/var\/run\/docker.sock\n      name: var-run-docker.sock\n    workingDir: \/\n  volumes:\n  - hostPath:\n      path: \/srv\/podman\/gitlab\/runner\n      type: Directory\n    name: srv-podman-gitlab-runner\n  - hostPath:\n      path: \/var\/run\/docker.sock\n      type: File\n    name: var-run-docker.sock\n  - hostPath:\n      path: \/srv\/podman\/gitlab\/data\n      type: Directory\n    name: srv-podman-gitlab-data\n  - hostPath:\n      path: \/srv\/podman\/gitlab\/logs\n      type: Directory\n    name: srv-podman-gitlab-logs\n  - hostPath:\n      path: \/srv\/podman\/gitlab\/conf\n      type: Directory\n    name: srv-podman-gitlab-conf\nstatus: {}<\/code><\/pre>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">Systemd:<\/b><\/p>\n<pre><code class=\"plaintext\"># podman generate systemd 71fc2b2a5c63\n# pod-71fc2b2a5c6346f0c1c86a2dc45dbe78fa192ea02aac001eb8347ccb8c043c26.service\n# autogenerated by Podman 1.6.4\n# Thu Jul 29 15:23:28 EDT 2020\n\n[Unit]\nDescription=Podman pod-71fc2b2a5c6346f0c1c86a2dc45dbe78fa192ea02aac001eb8347ccb8c043c26.service\nDocumentation=man:podman-generate-systemd(1)\nRequires=container-781c0103c94aaa113c17c58d05ddabf8df4bf39707b664abcf17ed2ceff467d3.service container-da53da946c01449f500aa5296d9ea6376f751948b17ca164df438b7df6607864.service\nBefore=container-781c0103c94aaa113c17c58d05ddabf8df4bf39707b664abcf17ed2ceff467d3.service container-da53da946c01449f500aa5296d9ea6376f751948b17ca164df438b7df6607864.service\n\n[Service]\nRestart=on-failure\nExecStart=\/usr\/bin\/podman start db40ab8bf84bf35141159c26cb6e256b889c7a98c0418eee3c4aa683c14fccaa\nExecStop=\/usr\/bin\/podman stop -t 10 db40ab8bf84bf35141159c26cb6e256b889c7a98c0418eee3c4aa683c14fccaa\nKillMode=none\nType=forking\nPIDFile=\/var\/run\/containers\/storage\/overlay-containers\/db40ab8bf84bf35141159c26cb6e256b889c7a98c0418eee3c4aa683c14fccaa\/userdata\/conmon.pid\n\n[Install]\nWantedBy=multi-user.target\n# container-da53da946c01449f500aa5296d9ea6376f751948b17ca164df438b7df6607864.service\n# autogenerated by Podman 1.6.4\n# Thu Jul 29 15:23:28 EDT 2020\n\n[Unit]\nDescription=Podman container-da53da946c01449f500aa5296d9ea6376f751948b17ca164df438b7df6607864.service\nDocumentation=man:podman-generate-systemd(1)\nRefuseManualStart=yes\nRefuseManualStop=yes\nBindsTo=pod-71fc2b2a5c6346f0c1c86a2dc45dbe78fa192ea02aac001eb8347ccb8c043c26.service\nAfter=pod-71fc2b2a5c6346f0c1c86a2dc45dbe78fa192ea02aac001eb8347ccb8c043c26.service\n\n[Service]\nRestart=on-failure\nExecStart=\/usr\/bin\/podman start da53da946c01449f500aa5296d9ea6376f751948b17ca164df438b7df6607864\nExecStop=\/usr\/bin\/podman stop -t 10 da53da946c01449f500aa5296d9ea6376f751948b17ca164df438b7df6607864\nKillMode=none\nType=forking\nPIDFile=\/var\/run\/containers\/storage\/overlay-containers\/da53da946c01449f500aa5296d9ea6376f751948b17ca164df438b7df6607864\/userdata\/conmon.pid\n\n[Install]\nWantedBy=multi-user.target\n# container-781c0103c94aaa113c17c58d05ddabf8df4bf39707b664abcf17ed2ceff467d3.service\n# autogenerated by Podman 1.6.4\n# Thu Jul 29 15:23:28 EDT 2020\n\n[Unit]\nDescription=Podman container-781c0103c94aaa113c17c58d05ddabf8df4bf39707b664abcf17ed2ceff467d3.service\nDocumentation=man:podman-generate-systemd(1)\nRefuseManualStart=yes\nRefuseManualStop=yes\nBindsTo=pod-71fc2b2a5c6346f0c1c86a2dc45dbe78fa192ea02aac001eb8347ccb8c043c26.service\nAfter=pod-71fc2b2a5c6346f0c1c86a2dc45dbe78fa192ea02aac001eb8347ccb8c043c26.service\n\n[Service]\nRestart=on-failure\nExecStart=\/usr\/bin\/podman start 781c0103c94aaa113c17c58d05ddabf8df4bf39707b664abcf17ed2ceff467d3\nExecStop=\/usr\/bin\/podman stop -t 10 781c0103c94aaa113c17c58d05ddabf8df4bf39707b664abcf17ed2ceff467d3\nKillMode=none\nType=forking\nPIDFile=\/var\/run\/containers\/storage\/overlay-containers\/781c0103c94aaa113c17c58d05ddabf8df4bf39707b664abcf17ed2ceff467d3\/userdata\/conmon.pid\n\n[Install]\nWantedBy=multi-user.target<\/code><\/pre>\n<p><\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043a\u0440\u043e\u043c\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u044e\u043d\u0438\u0442 \u0434\u043b\u044f systemd \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u0447\u0438\u0441\u0442\u043a\u0443 \u0441\u0442\u0430\u0440\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p><\/p>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 Podman \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b, \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0442\u0430\u0440\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f docker-compose, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0443\u0439\u0442\u0438 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 Kubernetes, \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u043b\u0438\u0431\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 Docker.<\/p>\n<p><\/p>\n<h2 id=\"rkt\">rkt<\/h2>\n<p><\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rkt\/rkt\/issues\/4024\">\u0443\u0448\u0435\u043b \u0432 \u0430\u0440\u0445\u0438\u0432<\/a><\/noindex> \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0435\u0433\u043e \u043a\u0443\u043f\u0438\u043b RedHat, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0435\u043c \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u0435\u0435. \u0412 \u0446\u0435\u043b\u043e\u043c \u043e\u043d \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 Docker \u0438 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0441 Podman \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u043c\u0431\u0430\u0439\u043d\u043e\u043c. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0442\u0430\u043a\u0436\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 CoreOS, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 rkt (\u0445\u043e\u0442\u044f \u0443 \u043d\u0438\u0445 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b Docker), \u043e\u0434\u043d\u0430\u043a\u043e \u0435\u0433\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 RedHat.<\/p>\n<p><\/p>\n<h2 id=\"plash\">Plash<\/h2>\n<p><\/p>\n<p>\u0415\u0449\u0435 <noindex><a rel=\"nofollow\" href=\"http:\/\/plash.io\/\">\u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0435\u043a\u0442<\/a><\/noindex>, \u0430\u0432\u0442\u043e\u0440 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0445\u043e\u0442\u0435\u043b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b. \u0421\u0443\u0434\u044f \u043f\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u043a\u043e\u0434\u0443 \u2014 \u0430\u0432\u0442\u043e\u0440 \u043d\u0435 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e, \u0447\u0442\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b.<\/p>\n<p><\/p>\n<h2 id=\"vyvody\">\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p><\/p>\n<p>\u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 Kubernetes \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f: \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0441 Docker \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 (\u0432 swarm mode), \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0434\u0430\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 (3-5 \u0447\u0435\u043b\u043e\u0432\u0435\u043a), \u043b\u0438\u0431\u043e \u043f\u0440\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u0449\u0435\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u0438\u043b\u0438 \u0436\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044e \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044f\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Kubernetes \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u0438\u0445 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u043a. <\/p>\n<p><\/p>\n<p>Podman \u043d\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u0432\u0430\u0436\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u2014 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 Kubernetes, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u043f\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c (buildah \u0438 \u043f\u0440\u043e\u0447\u0438\u0435). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a \u0432\u044b\u0431\u043e\u0440\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u0442\u0430\u043a: \u0434\u043b\u044f \u043c\u0430\u043b\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u043b\u0438\u0431\u043e \u043f\u0440\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u043c \u0431\u044e\u0434\u0436\u0435\u0442\u0435 \u2014 Docker (\u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c swarm mode), \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u0430 \u043b\u0438\u0447\u043d\u043e\u043c localhost \u2014 Podman \u0441\u043e\u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0438, \u0430 \u0432\u0441\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u2014 Kubernetes. <\/p>\n<p><\/p>\n<p>\u042f \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 Docker \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043e\u043d\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0438\u043e\u043d\u0435\u0440\u0430\u043c\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0448\u0430\u0433 \u0437\u0430 \u0448\u0430\u0433\u043e\u043c \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u043d\u043e \u0443 Podman \u043f\u0440\u0438 \u0432\u0441\u0435\u0445 \u0435\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u0445 (\u0440\u0430\u0431\u043e\u0442\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Linux, \u043d\u0435\u0442 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0441\u0431\u043e\u0440\u043a\u0430 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u2014 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438) \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0431\u043e\u043b\u0435\u0435 \u044f\u0441\u043d\u043e\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u0432\u0441\u0435\u0445 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0445 \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p><\/p>\n<p><strong>P.S.<\/strong> 3 \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u00ab<noindex><a rel=\"nofollow\" href=\"http:\/\/to.slurm.io\/WDgG2Q\">\u0412\u0438\u0434\u0435\u043e\u043a\u0443\u0440\u0441 \u043f\u043e Docker<\/a><\/noindex>\u00bb, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u043e \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0435. \u041c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0435\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: \u043e\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439 \u0434\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0435\u0442\u0438, \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u041e\u0421 \u0438 \u044f\u0437\u044b\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u044b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0435\u0441\u044c \u0441 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 \u0438 \u043f\u043e\u0439\u043c\u0435\u0442\u0435, \u0433\u0434\u0435 \u0438 \u043a\u0430\u043a \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Docker. \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u043c\u0441\u044f best practice \u043a\u0435\u0439\u0441\u0430\u043c\u0438.<\/p>\n<p><\/p>\n<p>\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u0437\u0430\u043a\u0430\u0437\u0430 \u0434\u043e \u0440\u0435\u043b\u0438\u0437\u0430: 5000 \u0440. \u0421 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u00ab\u0412\u0438\u0434\u0435\u043e\u043a\u0443\u0440\u0441\u0430 \u043f\u043e Docker\u00bb \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f <noindex><a rel=\"nofollow\" href=\"http:\/\/to.slurm.io\/WDgG2Q\">\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u0443\u0440\u0441\u0430<\/a><\/noindex>.<\/p>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/southbridge\/blog\/512246\/\">habr.com<\/a> <\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>TL;DR: \u043e\u0431\u0437\u043e\u0440\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f-\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u0440\u0435\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0411\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Docker \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0445\u043e\u0436\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. \u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0441\u0435 \u0432\u0437\u044f\u043b\u043e\u0441\u044c \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u041f\u0435\u0440\u0432\u044b\u043c \u043e\u0431\u0449\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f chroot. \u041e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u2014 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0435\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u0439, \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u041d\u043e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":90509,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-90508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"TL;DR: \u043e\u0431\u0437\u043e\u0440\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f-\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u0440\u0435\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0411\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Docker \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0445\u043e\u0436\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. \u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0441\u0435 \u0432\u0437\u044f\u043b\u043e\u0441\u044c \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u041f\u0435\u0440\u0432\u044b\u043c \u043e\u0431\u0449\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f chroot. \u041e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u2014 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0435\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u0439, \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u041d\u043e\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/docker-i-vse-vse-vse\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Docker \u0438 \u0432\u0441\u0435, \u0432\u0441\u0435, \u0432\u0441\u0435 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"TL;DR: \u043e\u0431\u0437\u043e\u0440\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f-\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u0440\u0435\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0411\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Docker \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0445\u043e\u0436\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. \u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0441\u0435 \u0432\u0437\u044f\u043b\u043e\u0441\u044c \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u041f\u0435\u0440\u0432\u044b\u043c \u043e\u0431\u0449\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f chroot. \u041e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u2014 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0435\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u0439, \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u041d\u043e\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/docker-i-vse-vse-vse\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-08-01T23:42:15+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-08-01T23:42:15+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Docker und alles, alles, alles | ProHoster","description":"TL;DR: \u00dcberblicksartikel als Leitfaden zum Vergleich von Umgebungen zur Ausf\u00fchrung von Anwendungen in Containern. Die M\u00f6glichkeiten von Docker und anderen \u00e4hnlichen Systemen werden behandelt. Ein wenig Geschichte, wo das Ganze herkommt. Geschichte Der erste bekannte Weg zur Isolierung einer Anwendung ist chroot. Der gleichnamige Systemaufruf erm\u00f6glicht die \u00c4nderung des Wurzelverzeichnisses \u2014 somit wird der Zugriff f\u00fcr das aufrufende Programm nur auf die Dateien innerhalb dieses Verzeichnisses gew\u00e4hrt. Aber","canonical_url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/docker-i-vse-vse-vse","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"de_DE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Docker \u0438 \u0432\u0441\u0435, \u0432\u0441\u0435, \u0432\u0441\u0435 | ProHoster","og:description":"TL;DR: \u043e\u0431\u0437\u043e\u0440\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f-\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u0440\u0435\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0411\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Docker \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0445\u043e\u0436\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. \u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0441\u0435 \u0432\u0437\u044f\u043b\u043e\u0441\u044c \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u041f\u0435\u0440\u0432\u044b\u043c \u043e\u0431\u0449\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f chroot. \u041e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u2014 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0435\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0435\u0439, \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u041d\u043e","og:url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/docker-i-vse-vse-vse","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-08-01T23:42:15+00:00","article:modified_time":"2020-08-01T23:42:15+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"90508","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 12:49:31","updated":"2022-10-01 13:04:46"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/90508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/comments?post=90508"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/90508\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media\/90509"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media?parent=90508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/categories?post=90508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/tags?post=90508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}