{"id":30721,"date":"2021-10-08T15:12:49","date_gmt":"2021-10-08T13:12:49","guid":{"rendered":"https:\/\/itedu.center\/ua\/blog\/?p=30721"},"modified":"2024-04-18T23:08:34","modified_gmt":"2024-04-18T20:08:34","slug":"docker_rocky_linux_8","status":"publish","type":"post","link":"https:\/\/itedu.center\/ua\/blog\/guides\/docker_rocky_linux_8\/","title":{"rendered":"\u0413\u0430\u0439\u0434: \u0456\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0456\u044f Docker \u043d\u0430 Rocky Linux 8"},"content":{"rendered":"\n<p><strong>\u042f\u043a\u0449\u043e \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 Docker \u043d\u0430 Rocky Linux 8, \u0446\u0435 \u043a\u0435\u0440\u0456\u0432\u043d\u0438\u0446\u0442\u0432\u043e \u0434\u043e\u043f\u043e\u043c\u043e\u0436\u0435. \u041f\u0435\u0440\u0435\u0434 \u0441\u0442\u0430\u0440\u0442\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0443 \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0439\u0442\u0435\u0441\u044f, \u0449\u043e \u0432\u0438 \u0443\u0432\u0456\u0439\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u043a \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437 sudo \u043f\u0440\u0430\u0432\u0430\u043c\u0438. \u0412\u0441\u0456 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0432 \u0446\u044c\u043e\u043c\u0443 \u0433\u0430\u0439\u0434\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 \u0432\u0456\u0434 \u0456\u043c\u0435\u043d\u0456 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u0431\u0435\u0437 \u043f\u043e\u0432\u043d\u043e\u0432\u0430\u0436\u0435\u043d\u044c root.&nbsp;<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/www.docker.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\" data-wpel-link=\"external\">Do<\/a><a href=\"https:\/\/www.docker.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\" data-wpel-link=\"external\">cker<\/a> \u2014 \u0446\u0435 \u0434\u0440\u0443\u0433\u0438\u0439 \u0437\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0456\u0441\u0442\u044e \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u0456\u043b\u044c\u0439\u043e\u043d\u0456\u0432 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0456\u0432, \u044f\u043a\u0438\u0439 \u0434\u043e\u043f\u043e\u043c\u0430\u0433\u0430\u0454 \u0457\u043c \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438, \u0441\u043f\u0456\u043b\u044c\u043d\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0456 \u0434\u043e\u0434\u0430\u0442\u043a\u0438 \u0432 \u0431\u0443\u0434\u044c-\u044f\u043a\u043e\u043c\u0443 \u043c\u0456\u0441\u0446\u0456 \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0430\u0431\u043e \u0432 \u0445\u043c\u0430\u0440\u0456. Docker \u0443\u043f\u0430\u043a\u043e\u0432\u0443\u0454 \u041f\u0417 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u043e\u0432\u0430\u043d\u0456 \u0431\u043b\u043e\u043a\u0438, \u044f\u043a\u0456 \u043d\u0430\u0437\u0438\u0432\u0430\u044e\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438. \u041a\u043e\u0436\u0435\u043d \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043c\u0430\u0454 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u0435 \u0434\u043b\u044f \u0440\u043e\u0431\u043e\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438: \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0438, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0456 \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0438, \u043a\u043e\u0434 \u0456 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0435 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f. \u0417\u0430\u0432\u0434\u044f\u043a\u0438 Docker \u043c\u043e\u0436\u043d\u0430 \u0448\u0432\u0438\u0434\u043a\u043e \u0440\u043e\u0437\u0433\u043e\u0440\u0442\u0430\u0442\u0438 \u0442\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0443\u0432\u0430\u0442\u0438 \u0434\u043e\u0434\u0430\u0442\u043a\u0438 \u0432 \u0431\u0443\u0434\u044c-\u044f\u043a\u043e\u043c\u0443 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0456 \u0442\u0430 \u0431\u0443\u0442\u0438 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0438\u043c \u0432 \u0442\u043e\u043c\u0443, \u0449\u043e \u043a\u043e\u0434 \u0431\u0443\u0434\u0435 \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u0442\u0438.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><a href=\"https:\/\/itedu.center\/ua\/blog\/articles\/kak-stat-sistemnym-administratorom\/\" title=\"https:\/\/itedu.center\/ua\/blog\/articles\/kak-stat-sistemnym-administratorom\/\" data-wpel-link=\"internal\">\u042f\u043a \u0441\u0442\u0430\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u043c \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c <\/a>&#8211; \u0447\u0438\u0442\u0430\u0442\u0438 \u043d\u0430 IT Education Blog.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u042f\u043a \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 Docker \u043d\u0430 Rocky Linux 8<\/strong><\/h2>\n\n\n\n<p><strong>\u041a\u0440\u043e\u043a 1.<\/strong> \u041f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u044e \u0431\u0443\u0434\u044c-\u044f\u043a\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0443 \u043d\u0430 \u0441\u0432\u0456\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 Rocky Linux, \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0442\u0438\u0441\u044f, \u0449\u043e \u0432\u0441\u0456 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0456 \u043f\u0430\u043a\u0435\u0442\u0438 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u0456.<\/p>\n\n\n\n<p><strong>sudo dnf update<\/strong><br><strong>sudo dnf upgrade<\/strong><br><strong>sudo dnf install dnf-utils<\/strong><\/p>\n\n\n\n<p><strong>\u041a\u0440\u043e\u043a 2. <\/strong>\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0456\u0442\u044c Docker \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0456 Rocky Linux. \u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u043e\u0444\u0456\u0446\u0456\u0439\u043d\u0438\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u0439 Docker \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457 \u043a\u043e\u043c\u0430\u043d\u0434\u0438:<\/p>\n\n\n\n<p><strong><strong>sudo dnf config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<\/strong><\/strong><\/p>\n\n\n\n<p>\u041f\u043e\u0442\u0456\u043c \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0456\u0442\u044c \u043f\u0430\u043a\u0435\u0442 Docker-CE \u0432 Rocky Linux, \u0432\u0438\u043a\u043e\u043d\u0430\u0432\u0448\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n\n\n\n<p><strong>sudo dnf update<\/strong><br><strong>sudo dnf install docker-ce &#8211;nobest<\/strong><\/p>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0438 \u0434\u043b\u044f Docker \u0456 \u0432\u043a\u043b\u044e\u0447\u0456\u0442\u044c \u0439\u043e\u0433\u043e \u043f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0438:<\/p>\n\n\n\n<p><strong>sudo systemctl start docker<\/strong><br><strong>sudo systemctl enable docker<\/strong><br><strong>sudo systemctl status docker<\/strong><\/p>\n\n\n\n<p>\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0435\u0440\u0441\u0456\u044e Docker \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457 \u043a\u043e\u043c\u0430\u043d\u0434\u0438:<\/p>\n\n\n\n<p><strong><strong>docker &#8211;version<\/strong><\/strong><\/p>\n\n\n\n<p><strong>\u041a\u0440\u043e\u043a 3.<\/strong> \u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u0432 \u0433\u0440\u0443\u043f\u0443 Docker. \u041f\u043e\u0442\u0456\u043c, \u0442\u0443\u0434\u0438 \u0436 \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430. \u0426\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u0432\u0438 \u043c\u043e\u0433\u043b\u0438 \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 Docker, \u043d\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 sudo:<\/p>\n\n\n\n<p><strong><strong>sudo usermod -aG docker $USER<\/strong><\/strong><\/p>\n\n\n\n<p><strong>\u041a\u0440\u043e\u043a 4.<\/strong> \u0422\u0435\u0441\u0442\u0443\u0432\u0430\u043d\u043d\u044f Docker \u0432 Rocky Linux. \u0429\u043e\u0431 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0446\u044c\u043e\u0433\u043e \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0443, \u0432\u0438\u043a\u043e\u043d\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n\n\n\n<p><strong><strong>docker run hello-world<\/strong><\/strong><\/p>\n\n\n\n<p>\u0412\u0438\u0445\u0456\u0434:<\/p>\n\n\n\n<p><strong>Unable to find image &#8216;hello-world:latest&#8217; locally<\/strong><br><strong>latest: Pulling from library\/hello-world<\/strong><br><strong>b8dfde127a29: Pull complete<\/strong><br><strong>Digest: sha256:61bd3cb6godetz4ff4c6407a5a7fr3akzfa8eefdbbec539eokco7f63e09f<\/strong><br><strong>Status: Downloaded newer image for hello-world:latest<\/strong><br><strong>Hello from Docker!<\/strong><br><strong>This message shows that your installation appears to be working correctly.<\/strong><\/p>\n\n\n\n<p>\u0429\u043e\u0431 \u0432\u0438\u0442\u044f\u0433\u0442\u0438 \u043e\u0431\u0440\u0430\u0437 Ubuntu, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0456 \u0432\u0437\u0430\u0454\u043c\u043e\u0434\u0456\u044f\u0442\u0438 \u0437 \u043d\u0438\u043c:<\/p>\n\n\n\n<p><strong><strong>docker pull ubuntu<\/strong><\/strong><\/p>\n\n\n\n<p>\u042f\u043a \u0442\u0456\u043b\u044c\u043a\u0438 \u043e\u0431\u0440\u0430\u0437 \u0431\u0443\u0434\u0435 \u0432\u0438\u0442\u044f\u0433\u043d\u0443\u0442\u043e, \u0441\u043b\u0456\u0434 \u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438 \u043e\u0431\u0440\u0430\u0437\u0438, \u0449\u043e \u0456\u0441\u043d\u0443\u044e\u0442\u044c:<\/p>\n\n\n\n<p><strong><strong>docker images<\/strong><\/strong><\/p>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 Ubuntu Docker:<\/p>\n\n\n\n<p><strong><strong>docker run -it ubuntu<\/strong><\/strong><\/p>\n\n\n\n<p>\u041e\u0441\u044c \u0456 \u0432\u0441\u0435, \u0449\u043e \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0434\u043b\u044f \u0456\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0456\u0457 Docker \u043d\u0430 Rocky Linux 8.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042f\u043a\u0449\u043e \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 Docker \u043d\u0430 Rocky Linux 8, \u0446\u0435 \u043a\u0435\u0440\u0456\u0432\u043d\u0438\u0446\u0442\u0432\u043e \u0434\u043e\u043f\u043e\u043c\u043e\u0436\u0435. \u041f\u0435\u0440\u0435\u0434 \u0441\u0442\u0430\u0440\u0442\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0443 \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0439\u0442\u0435\u0441\u044f, \u0449\u043e \u0432\u0438 \u0443\u0432\u0456\u0439\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u043a \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437 sudo \u043f\u0440\u0430\u0432\u0430\u043c\u0438. \u0412\u0441\u0456 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0432 \u0446\u044c\u043e\u043c\u0443 \u0433\u0430\u0439\u0434\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 \u0432\u0456\u0434 \u0456\u043c\u0435\u043d\u0456 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u0431\u0435\u0437 \u043f\u043e\u0432\u043d\u043e\u0432\u0430\u0436\u0435\u043d\u044c root.&nbsp; Docker \u2014 \u0446\u0435 \u0434\u0440\u0443\u0433\u0438\u0439 \u0437\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0456\u0441\u0442\u044e \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u0456\u043b\u044c\u0439\u043e\u043d\u0456\u0432 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0456\u0432, \u044f\u043a\u0438\u0439 \u0434\u043e\u043f\u043e\u043c\u0430\u0433\u0430\u0454 \u0457\u043c \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438, \u0441\u043f\u0456\u043b\u044c\u043d\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0456 \u0434\u043e\u0434\u0430\u0442\u043a\u0438 \u0432 \u0431\u0443\u0434\u044c-\u044f\u043a\u043e\u043c\u0443&hellip;<\/p>\n","protected":false},"author":4,"featured_media":30756,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[352],"tags":[71,235],"class_list":["post-30721","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","tag-docker","tag-rocky-linux"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"uk","enabled_languages":["uk"],"languages":{"uk":{"title":true,"content":true,"excerpt":false}}},"acf":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/comments?post=30721"}],"version-history":[{"count":17,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30721\/revisions"}],"predecessor-version":[{"id":35736,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/30721\/revisions\/35736"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/media\/30756"}],"wp:attachment":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/media?parent=30721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/categories?post=30721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/tags?post=30721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}