docker-compose up -dしても起動しなかった。
$ docker-compose up -d ・・・ ERROR: for hoge-server_nginx_1 Cannot start service nginx: driver failed programming external connectivity on endpoint hoge-server_nginx_1 (01f93651e96fd849e1bb0c27e23cStarting hoge-server_schemaspy_1 ... done ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint hoge-server_nginx_1 (01f93651e96fd849e1bb0c27e23c4d339c463ee7cfd539cb9e7ecbad628d7aa8): Bind for 0.0.0.0:30826 failed: port is already allocated ERROR: Encountered errors while bringing up the project.
注目ポイント
Bind for 0.0.0.0:30826 failed: port is already allocated
プロセスを探します。
$ lsof -i:30826 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME com.docke 33119 kanehiroyuu 15u IPv6 0xd3c98df804dcc83f 0t0 TCP *:30826 (LISTEN)
PIDを指定してプロセスを殺す
$ kill -9 33119
Mac上のDocker本体もダウンしたので、Docker本体を起動させる。
$ docker-compose up -d ・・・ Starting hoge-server_nginx_1 ... Starting hoge-server_nginx_1 ... done
起動したね😊