{"id":1912,"date":"2016-04-03T15:21:57","date_gmt":"2016-04-03T06:21:57","guid":{"rendered":"http:\/\/1bed.allright.life\/?p=1912"},"modified":"2020-04-18T22:11:31","modified_gmt":"2020-04-18T13:11:31","slug":"post-1912","status":"publish","type":"post","link":"https:\/\/1bed.allright.life\/?p=1912","title":{"rendered":"CentOS 7.2 \u3067 Docker \u59cb\u3081\u307e\u3059"},"content":{"rendered":"<p>\u65b0\u3057\u304f\u5951\u7d04\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u306b CentOS 7.2 \u3092\u5165\u308c\u305f\u306e\u3067\u3001Docker \u5165\u308c\u3066\u8a66\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u304c\u3001CentOS 7.x \u304b\u3089\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3042\u308b\u306e\u3067 yum \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u53ef\u80fd\u3067\u3059<\/p>\n<p>Docker \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre><code class=\"language-bash\">$ sudo yum install doker\n$ sudo systemctl start docker\n$ sudo systemctl enable docker\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/docker.service to \/usr\/lib\/systemd\/system\/docker.service.<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304c docker \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3059<\/p>\n<p>docker \u3092 miyamiya \u304c\u6271\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/p>\n<pre><code class=\"language-bash\">$ sudo groupadd docker\n$ sudo gpasswd -a miyamiya docker\nAdding user miyamiya to group docker\n$ sudo systemctl restart docker<\/code><\/pre>\n<p>\u4e00\u65e6\u3053\u3053\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3057\u307e\u3057\u3087\u3046<\/p>\n<p>\u3061\u306a\u307f\u306b\u3053\u306e\u624b\u9806\u3092\u53d6\u3089\u306a\u3044\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30a8\u30e9\u30fc\u3068\u306a\u308b<\/p>\n<pre><code class=\"language-bash\">$ docker pull node\nUsing default tag: latest\nPost http:\/\/\/var\/run\/docker.sock\/v1.20\/images\/create?fromImage=node%3Alatest: dial unix \/var\/run\/docker.sock: permission denied.\n* Are you trying to connect to a TLS-enabled daemon without TLS?\n* Is your docker daemon up and running?<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u7d42\u4e86\u3067\u3059<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u3057\u304f\u5951\u7d04\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u306b CentOS 7.2 \u3092\u5165\u308c\u305f\u306e\u3067\u3001Docker \u5165\u308c\u3066\u8a66\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059 \u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u304c\u3001CentOS 7.x \u304b\u3089\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3042\u308b\u306e\u3067 yum \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u53ef [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[91],"class_list":["post-1912","post","type-post","status-publish","format-standard","hentry","category-virtualization","tag-docker"],"_links":{"self":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/1912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1912"}],"version-history":[{"count":4,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions"}],"predecessor-version":[{"id":3164,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions\/3164"}],"wp:attachment":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}