docker-composeのコンテナを追加したり削除したりなど、あれこれ触っていたら、以下のエラーが発生。
Starting xxxxxxx ... error
ERROR: for xxxxxxx Cannot start service xxxxxxx: container is marked for removal and cannot be started
ERROR: Encountered errors while bringing up the project.
コンテナのstatusがDead状態になっているとこのようなエラーになる。
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c1ccedaf35fc xxxxxxx "docker-entrypoint.s…" 29 minutes ago Dead 0.0.0.0:3030->3000/tcp, :::3030->3000/tcp xxxxxxx
コンテナを削除すれば解決。
$ docker rm c1ccedaf35fc