##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.