0
0

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 1 year has passed since last update.

could not connect to server: Cannot assign requested address api Is the server running on host "localhost" (::1) and accepting api TCP/IP connections on port 5432?のエラーを解消した

Posted at

Dockerとpostgresqlを使っているときに以下のエラーが出た。

could not connect to server: Cannot assign requested address api Is the server running on host "localhost" (::1) and accepting api TCP/IP connections on port 5432?

host = データベースのサービス名
とすることで解決した。

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?