$ docker-compose stop
Stopping backend_nginx_1 ... error
Stopping backend_djangoapp_1 ... error
ERROR: for backend_nginx_1 b'cannot stop container: ecd5eab98011da7d79fa45137b6f9af8365dc1cfc4f13338b3bc51d3bb5614d4: Cannot kill container ecd5eab98011da7d79fa45137b6f9af8365dc1cfc4f13338b3bc51d3bb5614d4: unknown error after kill: runc did not terminate sucessfully: container_linux.go:388: signaling init process caused "permission denied"\n: unknown'
흐 시발ㅠㅠ
시스템관리자 AppArmor가 일을 똑바로 안해서 발생;
아래는 해결책
For anyone that does not wish to completely purge AppArmor.
Check status: sudo aa-status
Shutdown and prevent it from restarting: sudo systemctl disable apparmor.service --now
Unload AppArmor profiles: sudo service apparmor teardown
Check status: sudo aa-status
You should now be able to stop/kill containers.
'DevOps > Docker' 카테고리의 다른 글
AWS + docker-machine 사용 시 주의사항 (0) | 2019.06.08 |
---|---|
docker swarm 사용 시 manager mode 전환할 때 주의 (0) | 2019.06.08 |
docker-machine 명령어 (0) | 2019.05.29 |
docker swarm 명령어 (0) | 2019.05.22 |
docker 명령어 (0) | 2019.05.22 |