{"id":1470,"date":"2019-11-21T22:30:14","date_gmt":"2019-11-21T19:30:14","guid":{"rendered":"https:\/\/artem.services\/?p=1470"},"modified":"2019-11-21T22:32:23","modified_gmt":"2019-11-21T19:32:23","slug":"centos-8-docker-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1470","title":{"rendered":"CentOS 8 &#8212; Docker \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-27\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo.png\" alt=\"\" width=\"1800\" height=\"531\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo.png 1800w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-300x89.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-768x227.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-1024x302.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-954x281.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Docker-Logo-1354x399.png 1354w\" sizes=\"(max-width: 1800px) 100vw, 1800px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndnf install -y dnf-utils \\\r\ndevice-mapper-persistent-data lvm2\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0434\u043e\u043a\u0435\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndnf config-manager --add-repo \\\r\nhttps:\/\/download.docker.com\/linux\/centos\/docker-ce.repo\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>Docker<\/strong> \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nError:\r\n Problem: package docker-ce-3:19.03.5-3.el7.x86_64 requires containerd.io &gt;= 1.2.2-3, but none of the providers can be installed\r\n  - cannot install the best candidate for the job\r\n  - package containerd.io-1.2.10-3.2.el7.x86_64 is excluded\r\n  - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded\r\n  - package containerd.io-1.2.2-3.el7.x86_64 is excluded\r\n  - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded\r\n  - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded\r\n  - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded\r\n(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 <strong>Docker<\/strong>&#39;\u0430:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndnf list docker-ce --showduplicates | sort -r\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nLast metadata expiration check: 0:02:35 ago on Thu 21 Nov 2019 09:17:30 PM EET.\r\ndocker-ce.x86_64            3:19.03.5-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:19.03.4-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:19.03.3-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:19.03.2-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:19.03.1-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:19.03.0-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.9-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.8-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.7-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.6-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.5-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.4-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.3-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.2-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.1-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            3:18.09.0-3.el7                     docker-ce-stable\r\ndocker-ce.x86_64            18.06.3.ce-3.el7                    docker-ce-stable\r\ndocker-ce.x86_64            18.06.2.ce-3.el7                    docker-ce-stable\r\ndocker-ce.x86_64            18.06.1.ce-3.el7                    docker-ce-stable\r\ndocker-ce.x86_64            18.06.0.ce-3.el7                    docker-ce-stable\r\ndocker-ce.x86_64            18.03.1.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            18.03.0.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.12.1.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.12.0.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.09.1.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.09.0.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.06.2.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.06.1.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.06.0.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.03.3.ce-1.el7                    docker-ce-stable\r\ndocker-ce.x86_64            17.03.2.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.03.1.ce-1.el7.centos             docker-ce-stable\r\ndocker-ce.x86_64            17.03.0.ce-1.el7.centos             docker-ce-stable\r\nAvailable Packages\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 &quot;<strong>:3<\/strong>&quot;, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e: &quot;<strong>18.06.3.ce-3.el7<\/strong>&quot;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0435\u0435 \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndnf install -y docker-ce-18.06.3.ce-3.el7 containerd.io\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c <strong>Docker<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl start docker\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndocker run hello-world\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl enable docker\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b: &nbsp; \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0434\u043e\u043a\u0435\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e: &nbsp; \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Docker \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443: &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[5,1169,4],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1470"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1470"}],"version-history":[{"count":3,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1470\/revisions"}],"predecessor-version":[{"id":1473,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1470\/revisions\/1473"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}