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.

[docker, error]

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:50080 -> 0.0.0.0:0: listen tcp 0.0.0.0:50080: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

やりたいこと

→ ドッカーのポート番号のkill

→ ドッカーのERRORの解消
やったこと

→ ググる,チャットGPTに聞く,ドキュメントを読む
error内容

→ Docker Composeアプリケーションを起動できません。理由: compose [start] exit status 1. Container part2-app-1 Starting デーモンからのエラー応答: Ports are not available: exposing port TCP 0.0.0.0:50080 -> 0.0.0.0:0: listen tcp 0.0.0.0:50080: bind: アクセス権限で禁止されている方法でソケットにアクセスしようとしました
原因

ポート番号が占有されてしまっておりContainer part2-app-1をrunさせられない
解決策

1.a→ 先ずはポート番号を調べて、次にポート番号をkillしてみた → 失敗

1.b→ ドキュメントを読み docker ps コマンドをうつ

→ docker restart part2-app-1 で成功
備考
  → 次回はポート番号を調べて、次にポート番号をkillで成功させたい

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?