docker cannot stop container问题解决
Posted lgjlife
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker cannot stop container问题解决相关的知识,希望对你有一定的参考价值。
docker 容器在启动时出现异常,删除容器或者暂停容器时会出现cannot stop container
先使用sudo aa-remove-unknown ,再进行其他操作
[email protected]:~/java/start$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4f36ce88f0af d0d78741cdec "java -jar /worker/b…" 43 minutes ago Up 43 minutes 0.0.0.0:8703->8703/tcp microblog-blog-web [email protected]-Lenovo-G470:~/java/start$ docker start microblog-blog-web microblog-blog-web [email protected]-Lenovo-G470:~/java/start$ docker stop microblog-blog-web Error response from daemon: cannot stop container: microblog-blog-web: Cannot kill container 4f36ce88f0af0a01ac675742de6e848576f1ba74f839267eec3dd4fa57d89f98:
unknown error after kill: docker-runc did not terminate sucessfully: container_linux.go:393: signaling init process caused "permission denied": unknown
[email protected]-Lenovo-G470:~/java/start$ aa-remove-unknown
/usr/sbin/aa-remove-unknown: 66: /usr/sbin/aa-remove-unknown: cannot open /sys/kernel/security/apparmor/profiles: Permission denied ERROR: Unable to read apparmorfs profiles file [email protected]-Lenovo-G470:~/java/start$ sudo aa-remove-unknown
[sudo] password for lgj: Removing ‘docker-default‘ [email protected]-Lenovo-G470:~/java/start$ docker stop microblog-blog-web microblog-blog-web [email protected]-Lenovo-G470:~/java/start$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
aa-remove-unknown将清点/etc/apparmor.d/中的所有配置文件,将该列表与当前加载到内核中的配置文件进行比较,然后删除/etc/apparmor.d/中未找到的所有已加载配置文件。 它还将报告在标准输出时删除的每个配置文件的名称。
以上是关于docker cannot stop container问题解决的主要内容,如果未能解决你的问题,请参考以下文章
异常-User class threw exception: java.lang.IllegalStateException: Cannot call methods on a stopped Spa
错误记录Android Studio 编译报错 ( Cannot use connection to Gradle distribution . as it has been stopped. )(代
Tensorflow2.0报错:ProfilerNotRunningError: Cannot stop profiling. No profiler is running.(修改后别忘了重启内核或关
32-Docker-常用命令详解-docker start/stop/restart