今まで
$ docker-compose exec php bash
以前作成したlaravel環境のコンテナに入れていたのですが、入れなくなってしまいました。
php_1というコンテナに入ろうとしています。
名前を変えてコンテナを作り直すともう一度laravel環境を構築する羽目になりそうなのでそれは避けたいと思っています。
docker psでコンテナが動いていることは確認できますが現状何をやってもエラーが出てしまって自力解決ができませんでした。
解決策などお教えいただけないでしょうか?
$docker exec -i -t php_1 bash OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "chdir to cwd (\"/var/www\") set in config.json failed: no such file or directory": unknown $docker-compose up -d Creating db-host_1 ... error Creating db-test_1 ... Creating php_1 ... ERROR: for db-host_1 Cannot create container for service db_host: Conflict. The container name "/db-host_1" is already in use by container "hoge Creating php_1 ... error Creating db-test_1 ... error to remove (or rename) that container to be able to reuse that name. ERROR: for db-test_1 Cannot create container for service db_test: Conflict. The container name "/db-test_1" is already in use by container "huga". You have to remove (or rename) that container to be able to reuse that name. ERROR: for db_host Cannot create container for service db_host: Conflict. The container name "/db-host_1" is already in use by container "hoge". You have to remove (or rename) that container to be able to reuse that name. ERROR: for php Cannot create container for service php: Conflict. The container name "/php_1" is already in use by container "hogehoge". You have to remove (or rename) that container to be able to reuse that name. ERROR: for db_test Cannot create container for service db_test: Conflict. The container name "/db-test_1" is already in use by container "huga". You have to remove (or rename) that container to be able to reuse that name. ERROR: Encountered errors while bringing up the project. $docker exec php bash Error: No such container: php
docker psではいくつかコンテナが表示されるのですが
docker-compose psでは何も表示されません。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/07/02 08:19
2020/07/02 08:43