{"id":1568,"date":"2020-03-10T20:57:15","date_gmt":"2020-03-10T11:57:15","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=1568"},"modified":"2020-03-14T12:11:02","modified_gmt":"2020-03-14T03:11:02","slug":"%e3%80%90docker%e3%80%91amazonlinux2-sbin-init-%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e8%b5%b7%e5%8b%95%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=1568","title":{"rendered":"\u3010docker\u3011Amazonlinux2 \/sbin\/init \u30b3\u30f3\u30c6\u30ca\u8d77\u52d5\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>amazonlinux2 \u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002<!--more--><br \/>\n\u5b9f\u884c\u3057\u305f docker \u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >docker run -itd --privileged --name amazonlinux -p 4001:80 amazonlinux:latest \/sbin\/init<\/pre>\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"theme:mirc-dark lang:default decode:true \" >docker: invalid publish opts format (should be name=value but got '4001\uff1a80').\r\nSee 'docker run --help'.<\/pre>\n<p>\u5fa9\u65e7\u306e\u70ba\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002<\/p>\n<h1>\u89e3\u6c7a\u65b9\u6cd5<\/h1>\n<p>amazonlinux\u30b3\u30f3\u30c6\u30ca\u306bsystemd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u305d\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u30a4\u30e1\u30fc\u30b8\u5316\u3057\u307e\u3059\u3002<\/p>\n<h2>systemd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u901a\u5e38\u901a\u308a\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >docker run -itd --name amazonlinux_org amazonlinux:latest \/bin\/bash<\/pre>\n<p>\u30b3\u30f3\u30c6\u30ca\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002 <\/p>\n<pre class=\"lang:default decode:true \" >docker exec -it amazonlinux_org \/bin\/bash<\/pre>\n<p>systemd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 <\/p>\n<pre class=\"lang:default decode:true \" >yum install systemd -y<\/pre>\n<h2>\u30a4\u30e1\u30fc\u30b8\u4f5c\u6210<\/h2>\n<p>\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3001\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u30b3\u30f3\u30c6\u30caID\u306f\u9069\u5b9c\u5909\u66f4\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true \" >docker commit c2a779edafb6 amazonlinux_new<\/pre>\n<h2>\u30b3\u30f3\u30c6\u30ca\u8d77\u52d5<\/h2>\n<p>\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >docker run -itd --privileged --name amazonlinux -p 4001:80 amazonlinux_new \/sbin\/init<\/pre>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u7279\u306b\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>amazonlinux2 \u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":968,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,11],"tags":[],"class_list":["post-1568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","category-11"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1568"}],"version-history":[{"count":6,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1568\/revisions"}],"predecessor-version":[{"id":1574,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1568\/revisions\/1574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/968"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}