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 3 years have passed since last update.

Dockerでdocker-compose upができないエラーについて

Last updated at Posted at 2020-05-17

環境

Docker 19.03.8
MacOS 10.15.4

なぜかdocker-compose upでエラーになってしまう場合

下記のような絵ラーが出てしまった場合

$ docker-compose up

#(省略)

ERROR: for recipegram_web_1  Cannot start service web: driver failed programming external connectivity on endpoint recipegram_web_1 (2114b3f64e45c6f24835b0b49c1aac852d41b5f6c952181dc7b660f9105b79c6): Bind for 0.0.0.0:3000 failed: port is already allocated

ERROR: for web  Cannot start service web: driver failed programming external connectivity on endpoint recipegram_web_1 (2114b3f64e45c6f24835b0b49c1aac852d41b5f6c952181dc7b660f9105b79c6): Bind for 0.0.0.0:3000 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

いつもはできてるバズなのにおかしなぁ...と思ってよく読んでみると「接続に失敗し、立ち上げ中にエラーが発生しました」という内容が出てきました...
おかしいなぁ...と思い。考えてみると他のアプリをDockerで立ち上げていたことに気がつきます!

なので起動中のアプリのディレクトリに移動して$ docker-compose stopをして完了です。単純なエラーでした^_^;

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?