25
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

dockerのエラーでdocker再起動で直ったケース

Posted at

##dockerのエラーでdocker再起動で直ったケース

メモ書きとして残しておきます。

このエラーはdockerの再起動で直った

 $ docker-compose up -d
Creating network "portal_default" with the default driver
Creating php-test2 ... 
Creating db-test2  ... 

ERROR: for php-test2  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for db-test2  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for php  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

ERROR: for db  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

こちらもdockerの再起動で直った

[portal]
 $ docker-compose up -d
Creating network "portal_default" with the default driver
Creating db-test2 ... 
Creating db-test2  ... error
WARNING: Host is already in use by another container

ERROR: for db-test2  Cannot start service db: driver failed programming external connectivity on endpoint db-test2 (96997666310c6553455669041dad035c75833a9cfCreating php-test2 ... done
Creating nginx-test2 ... done

ERROR: for db  Cannot start service db: driver failed programming external connectivity on endpoint db-test2 (96997666310c6553455669041dad035c75833a9cfa836ebe6179f7c2570b6d3f): Bind for 0.0.0.0:3306 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
25
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
25
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?