Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: Cannot start service db #2

Open
kuroda opened this issue Feb 14, 2019 · 2 comments
Open

docker: Cannot start service db #2

kuroda opened this issue Feb 14, 2019 · 2 comments

Comments

@kuroda
Copy link
Owner

kuroda commented Feb 14, 2019

docker-compose run web rails new . --force --no-deps --database=postgresql

Cannot start service db: OCI runtime create failed: container with id exists:
@kuroda
Copy link
Owner Author

kuroda commented Feb 14, 2019

docker ps -a でコンテナIDを調べて、削除する

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                    PORTS               NAMES
0b89bb310e3a        postgres            "docker-entrypoint.s…"   9 minutes ago       Created                   5432/tcp            dockerbaukis2_db_1
docker rm 0b89bb310e3a

@kuroda
Copy link
Owner Author

kuroda commented Feb 20, 2019

あるいは docker container prune で停止中のコンテナをすべて削除してもよいが、Webコンテナも削除されてしまうので、bundle install の実行が必要となる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant