I’ve just installed a fresh Ubuntu LTS (18.04), installed docker-ce and started a home-assistant container with this docker-compose file:
version: "3" services: homeassistant: container_name: home-assistant image: homeassistant/home-assistant volumes: - /home/stuart/home-assistant-config:/config - /etc/localtime:/etc/localtime:ro restart: always network_mode: host
However the path to home assistant config was wrong, so I’m trying to stop the image to recreate it with the new config, but I’m getting this error:
Error response from daemon: cannot stop container: home-assistant: Cannot kill container 5b3748bad815a0ceb86d9f29356e366e11b374b69a1b726c8dd53a7e4996226b: unknown error after kill: runc did not terminate sucessfully: container_linux.go:387: signaling init process caused "permission denied"
How do you restart containers with apparmor installed?