tried to kill container, but did not receive an exit event
我尝试过以下方法,包括重启docker 都无法成功停掉这个容器,它一直处于重启的状态,
容器
CONTAINER ID | IMAGE | COMMAND | CREATED | STATUS | NAMES |
---|---|---|---|---|---|
0a0df1b47044 | postgres:11.6-alpine | "docker-entrypoint.s…" | 21 months ago | Restarting (1) 3 months ago | container_database_1 |
查看日志
PostgreSQL Database directory appears to contain a database; Skipping initialization
2022-06-11 06:38:40.487 UTC [1] FATAL: database files are incompatible with server
2022-06-11 06:38:40.487 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 14, which is not compatible with this version 11.6.
更新尝试
- docker-compose up -d
Creating network "container_default" with the default driver Pulling database (postgres:)... latest: Pulling from library/postgres 8a1e25ce7c4f: Pull complete 002317ed8722: Pull complete c223965bd9a8: Pull complete 847682431a68: Pull complete 8d29ba654727: Pull complete fd133663e42b: Pull complete 13de11c6ecda: Pull complete 45bb35744214: Pull complete d4082e63ce2c: Pull complete 269f33c511c1: Pull complete 7cbaf3c85093: Pull complete f1c82efa0dcd: Pull complete e9d0d3c40657: Pull complete 68bf5c580643: Pull complete Digest: sha256:6b841c8f6a819884207402f1209a8116844365df15fca8cf556fc54a24c70800 Status: Downloaded newer image for postgres:latest Recreating container_database_1 ... error ERROR: for container_database_1 cannot stop container: 0a0df1b470443e65cbf8dcb35f735445c969a0c52957804e4d69db9a5be2e357: tried to kill container, but did not receive an exit event ERROR: for database cannot stop container: 0a0df1b470443e65cbf8dcb35f735445c969a0c52957804e4d69db9a5be2e357: tried to kill container, but did not receive an exit event ERROR: Encountered errors while bringing up the project.
操作尝试
- docker stop 0a0df1b47044
- 结果:
Error response from daemon: cannot stop container: 0a0df1b47044: tried to kill container, but did not receive an exit event
- 结果:
- docker kill 0a0df1b47044
- 结果:
Error response from daemon: Cannot kill container: 0a0df1b47044: tried to kill container, but did not receive an exit event
- 结果:
- docker-compose stop
- 结果:
Stopping container_database_1 ... error
ERROR: for container_database_1 cannot stop container: 0a0df1b470443e65cbf8dcb35f735445c969a0c52957804e4d69db9a5be2e357: tried to kill container, but did not receive an exit event
- 结果:
- docker-compose down
- 结果:
Stopping container_database_1 ... error
ERROR: for container_database_1 cannot stop container: 0a0df1b470443e65cbf8dcb35f735445c969a0c52957804e4d69db9a5be2e357: tried to kill container, but did not receive an exit event
Removing network container_default
- 结果:
- docker kill -s SIGKILL 0a0df1b47044
- 结果:
Error response from daemon: Cannot kill container: 0a0df1b47044: tried to kill container, but did not receive an exit event
- 结果: