简体   繁体   中英

Unable to restart the Docker machine

I am trying to restart Docker using the command

sudo docker restart a7f8ce75f51f

but I get the following error

Error response from daemon: Cannot restart container a7f8ce75f51f: Cannot kill container 
a7f8ce75f51f718c39828ef45e510e5380fee6d768a3496a251469f3afee650c: unknown error after kill: 
runc did not terminate sucessfully: container_linux.go:392: signaling init process caused
"permission denied"
: unknown

What could be the reason for this error?

I want to restart the Docker with this Docker Compose file:

version: '3'
services:
prisma:
    network_mode: host
    image: prismagraphql/prisma:1.34
    restart: always
    ports:
    - "4455:4466"
    environment:
    PRISMA_CONFIG: |
        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: my-secret
        databases:
        default:
            connector: mongo
            uri: 'mongodb://localhost:27018'

I think, the message indicates that a process inside the container blocks the kill signal. Since it is a db-container, maybe this is some sort of data protection.

You could try to manually stop it with:

docker stop a7f8ce75f51f

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM