{"id":69,"date":"2022-04-10T09:29:54","date_gmt":"2022-04-10T00:29:54","guid":{"rendered":"https:\/\/global-hack.com\/blog\/?p=69"},"modified":"2022-05-16T00:21:10","modified_gmt":"2022-05-15T15:21:10","slug":"docker%e3%81%ae%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%82%92%e5%bc%b7%e5%88%b6%e7%b5%82%e4%ba%86%e3%81%95%e3%81%9b%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/global-hack.com\/blog\/archives\/69","title":{"rendered":"Docker\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u5f37\u5236\u7d42\u4e86\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<h3>MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b3\u30f3\u30c6\u30ca\u304c\u505c\u6b62\u3057\u3066\u304f\u308c\u306a\u3044<\/h3>\n<p>Dcoker\u306e\u30b3\u30f3\u30c6\u30ca\u8d77\u52d5\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304f\u306a\u3063\u305f\u3068\u304d\u306e\u72b6\u6cc1\u3067\u3059\u3002\u524d\u56de\u8d77\u52d5\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u304c\u304d\u3061\u3093\u3068\u505c\u6b62\u305b\u305a\u6b8b\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u5f37\u5236\u7d42\u4e86\u3057\u3088\u3046\u3068\u8003\u3048\u305f\u308f\u3051\u3060\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>ERROR: for db-dl  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)\r\nERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.\r\nIf you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).<\/code><\/pre>\n<\/div>\n<p><!--more--><\/p>\n<h3>\u30b3\u30f3\u30c6\u30caID\u3092\u6307\u5b9a\u3057\u3066\u5f37\u5236\u524a\u9664\u3057\u7d42\u4e86\u3055\u305b\u308b<\/h3>\n<p>\u300c<span class=\"s1\">docker ps<\/span>\u300d\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30c6\u30caID\u3092\u8abf\u3079\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ docker ps<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>CONTAINER ID   IMAGE          COMMAND                  CREATED        STATUS        PORTS                                                  NAMES\r\n650810b40446   mysql:latest   \"docker-entrypoint.s\u2026\"   22 hours ago   Up 21 hours   0.0.0.0:3306-&gt;3306\/tcp, :::3306-&gt;3306\/tcp, 33060\/tcp   db-dl\r\n<\/code><\/pre>\n<\/div>\n<p>\u4e00\u756a\u5de6\u306e\u300cCONTAINER ID\u300d\u306e\u5024\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>\u305d\u3057\u3066\u4e0b\u8a18\u306e\u3010\u30b3\u30f3\u30c6\u30caID\u3011\u306e\u3068\u3053\u308d\u3078\u5148\u307b\u3069\u30b3\u30d4\u30fc\u3057\u305f\u5024\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002<\/p>\n<p>\u300cdocker rm\u300d\u53c2\u8003\uff1a<a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/rm\/\" target=\"_blank\" rel=\"nofollow noopener\" title=\"Docker\u30b3\u30f3\u30c6\u30ca\u524a\u9664\u306e\u65b9\u6cd5\">Docker\u30b3\u30f3\u30c6\u30ca\u524a\u9664\u306e\u65b9\u6cd5<\/a><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>docker rm --force \u3010\u30b3\u30f3\u30c6\u30caID\u3011<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ docker rm --force 650810b40446<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u3046\u307e\u304f\u3044\u304f\u3068\u601d\u3063\u305f\u3089\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306e\u51e6\u7406\u304c\u9032\u307e\u305a\u306e\u72b6\u614b\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u518d\u5ea6\u5f37\u5236\u524a\u9664\u5b9f\u884c\u3057\u3066\u307f\u305f\u304c\u30ec\u30b9\u30dd\u30f3\u30b9\u306f\u300c\u9032\u884c\u4e2d\u300d\u3068\u306e\u3053\u3068\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Error response from daemon: removal of container 650810b40446 is already in progress<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>docker kill 650810b40446<\/code><\/pre>\n<\/div>\n<p>kill\u3067\u8a66\u3057\u307e\u3057\u305f\u304c\u5fdc\u7b54\u3059\u3089\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ed5\u65b9\u306a\u304fMac\u81ea\u4f53\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>Mac\u518d\u8d77\u52d5\u5f8c\u8d77\u52d5\u3057\u3066\u307f\u308b\u3053\u3068\u306b<\/h3>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ docker-compose up -d<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Removing app-dl\r\nRemoving nginx-dl\r\nRecreating db-dl                       ... done\r\nRecreating 300c94df9886_app-dl         ... done\r\nStarting scraping-api_mailcatcher-dl_1 ... done\r\nRecreating f4d92d47306e_nginx-dl       ... done\r\nRecreating phpmyadmin-dl               ... done<\/code><\/pre>\n<\/div>\n<p>\u7121\u4e8b\u306b\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u304a\u305d\u3089\u304f<code>docker rm<\/code>\u306e\u6642\u70b9\u3067\u65e2\u306b\u5f37\u5236\u524a\u9664\u306f\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u308f\u3056\u308f\u3056Mac\u3092\u518d\u8d77\u52d5\u3059\u308b\u306e\u306f\u9762\u5012\u3067\u3059\u304c\u3001\u3082\u3057\u540c\u3058\u75c7\u72b6\u3067\u304a\u56f0\u308a\u306e\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u3063\u305f\u3089\u3054\u53c2\u8003\u307e\u3067\u306b\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b3\u30f3\u30c6\u30ca\u304c\u505c\u6b62\u3057\u3066\u304f\u308c\u306a\u3044 Dcoker\u306e\u30b3\u30f3\u30c6\u30ca\u8d77\u52d5\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304f\u306a\u3063\u305f\u3068\u304d\u306e\u72b6\u6cc1\u3067\u3059\u3002\u524d\u56de\u8d77\u52d5\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u304c\u304d\u3061\u3093\u3068\u505c\u6b62\u305b\u305a\u6b8b\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u5f37\u5236\u7d42\u4e86\u3057\u3088\u3046\u3068\u8003\u3048\u305f\u308f\u3051\u3060\u3002 ERROR: for db-dl <a class=\"mh-excerpt-more\" href=\"https:\/\/global-hack.com\/blog\/archives\/69\" title=\"Docker\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u5f37\u5236\u7d42\u4e86\u3055\u305b\u308b\u65b9\u6cd5\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":70,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,29],"tags":[30],"class_list":["post-69","post","type-post","status-publish","format-standard","has-post-thumbnail","category-docker","category-mysql","tag-docker-compose"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/01\/docker-container-delete.jpg","_links":{"self":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media\/70"}],"wp:attachment":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}