{"id":8493,"date":"2019-12-15T22:51:28","date_gmt":"2019-12-15T13:51:28","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=8493"},"modified":"2019-12-31T12:07:30","modified_gmt":"2019-12-31T03:07:30","slug":"%e3%80%90docker%e3%80%91docker%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=8493","title":{"rendered":"\u3010Docker\u3011Docker\u30b3\u30f3\u30c6\u30ca\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb"},"content":{"rendered":"<p>Docker\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306f\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u78ba\u8a8d\u65b9\u6cd5<\/h2>\n<p>\u4e0b\u8a182\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308c\u3070\u30b3\u30f3\u30c6\u30ca\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>docker ps -a<\/li>\n<li>docker inspect \u30b3\u30f3\u30c6\u30ca\u540d<\/li>\n<\/ul>\n<h2>\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u7a2e\u985e<\/h2>\n<p>Docker\u30b3\u30f3\u30c6\u30ca\u306b\u306f\u4e0b\u8a188\u3064\u306e\u72b6\u614b\u304c\u3042\u308a\u307e\u3059\u3002\uff08Docker\u30a4\u30e1\u30fc\u30b8\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3042\u308a\u72b6\u614b\u3092\u6301\u3061\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li>Created<\/li>\n<li>Running(\u5b9f\u884c\u4e2d)<\/li>\n<li>Paused(\u4e00\u6642\u505c\u6b62\uff09<\/li>\n<li>Restarted(\u518d\u5b9f\u884c\uff09<\/li>\n<li>Exited(\u505c\u6b62\u3001\u7d42\u4e86)<\/li>\n<li>Removing<\/li>\n<li>Dead<\/li>\n<li>\u7834\u68c4<\/li>\n<\/ul>\n<p><span style=\"color: #ff0000;\"><strong>\u300cDocker\u30b3\u30f3\u30c6\u30ca\u3092\u64cd\u4f5c\u3059\u308b\u300d<\/strong><\/span>\u3068\u8a00\u3063\u305f\u5834\u5408\u306f\u5fc5\u305a\u3053\u306e\u4e09\u3064\u306e\u72b6\u614b\u306e\u3046\u3061\u3069\u308c\u304b\u306e\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u628a\u63e1\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Created<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u304c\u4f5c\u6210\u3055\u308c\u3066\u30b9\u30bf\u30fc\u30c8\u3055\u308c\u308b\u524d\u306e\u72b6\u614b\u3067\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u300cdocker create\u300d<\/strong><\/span>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u305f\u72b6\u614b\u304c\u3053\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>Runnning(\u5b9f\u884c\u4e2d)<\/h3>\n<p>\u300cdocker container run\u30b3\u30de\u30f3\u30c9\u300d(\u3082\u3057\u304f\u306fdocker start\u30b3\u30de\u30f3\u30c9)\u306b\u3088\u308a\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u306f\u3053\u306e\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308c\u3070\u3053\u306e\u72b6\u614b\u306f\u9577\u304f\u7d9a\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u4e00\u5ea6\u5b9f\u884c\u3057\u305f\u3089\u3059\u3050\u306b\u7d42\u4e86\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u306f\u3053\u306e\u72b6\u614b\u306f\u3059\u3050\u306b\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n<h3>Paused(\u4e00\u6642\u505c\u6b62\uff09<\/h3>\n<p>docker pause\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u4e00\u6642\u505c\u6b62\u3055\u305b\u305f\u969b\u306b\u3053\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\u300cdocker unpause\u300d\u30b3\u30de\u30f3\u30c9\u3067\u89e3\u9664\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>Restarted(\u518d\u5b9f\u884c\uff09<\/h3>\n<p>docker restart\u30b3\u30de\u30f3\u30c9\u7b49\u3092\u5b9f\u884c\u3057\u305f\u969b\u306b\u4e00\u6642\u7684\u306b\u306a\u308b\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u3059\u3002\u307b\u307c\u3053\u306e\u72b6\u614b\u3092\u898b\u308b\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>Exited(\u7d42\u4e86\u3001\u505c\u6b62\uff09<\/h3>\n<p>\u4e0b\u8a18\u306e\u5834\u5408\u306b\u3053\u306e\u72b6\u614b\u306b\u9077\u79fb\u3057\u307e\u3059\u3002\u30c7\u30a3\u30b9\u30af\u306b\u30b3\u30f3\u30c6\u30ca\u7d42\u4e86\u306e\u72b6\u614b\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u518d\u5b9f\u884c\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u660e\u793a\u7684\u306b\u30b3\u30f3\u30c6\u30ca\u3092\u505c\u6b62\u3057\u305f\u5834\u5408<\/li>\n<li>\u30b3\u30f3\u30c6\u30ca\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u304c\u6b63\u5e38\u3001\u7570\u5e38\u554f\u308f\u305a\u7d42\u4e86\u3057\u305f\u5834\u5408<\/li>\n<\/ul>\n<h3>Removing<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u306e\u524a\u9664\u4e2d\u3092\u793a\u3059\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u3059\u3002\u524a\u9664\u306f\u305d\u308c\u307b\u3069\u6642\u9593\u304c\u639b\u304b\u3089\u306a\u3044\u306e\u3067\u3042\u307e\u308a\u898b\u304b\u3051\u308b\u3053\u3068\u304c\u306a\u3044\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u3059\u3002<\/p>\n<h3>Dead<\/h3>\n<p>\u6b63\u5e38\u306b\u7d42\u4e86\u3067\u304d\u305a\u306b\u6b8b\u3063\u3066\u3057\u307e\u3063\u305f\u30b3\u30f3\u30c6\u30ca\u306b\u306a\u308a\u307e\u3059\u3002\u524a\u9664\u3059\u308b\u3057\u304b\u306a\u3044\u3067\u3059\u3002<\/p>\n<h3>\u7834\u68c4<\/h3>\n<p>\u505c\u6b62\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u3092\u30c7\u30a3\u30b9\u30af\u304b\u3089\u7834\u68c4\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u7834\u68c4\u305b\u305a\u306b\u30b3\u30f3\u30c6\u30ca\u306e\u72b6\u614b\u304c<span style=\"color: #ff0000;\"><strong>\u6e9c\u307e\u308a\u7d9a\u3051\u308b\u3068\u30c7\u30a3\u30b9\u30af\u3092\u903c\u8feb\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u5b9a\u671f\u7684\u306b\u7834\u68c4\u3059\u308b\u3053\u3068\u304c\u671b\u307e\u3057\u3044<\/strong><\/span>\u3067\u3059\u3002\u306a\u304a\u3001\u4e00\u5ea6\u7834\u68c4\u3057\u3066\u3057\u307e\u3063\u305f\u30b3\u30f3\u30c6\u30ca\u306f\u518d\u5ea6\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Docker\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306f\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002 \u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u78ba\u8a8d\u65b9\u6cd5 \u4e0b\u8a182\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308c\u3070\u30b3\u30f3\u30c6\u30ca\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002 docker ps -a docker inspect \u30b3\u30f3\u30c6\u30ca\u540d [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[63],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8493"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8493"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8493\/revisions"}],"predecessor-version":[{"id":8992,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8493\/revisions\/8992"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8493"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}