'how to stop jenkins that is running in docker

I started jenkins in docker with command like this:

docker run -p 8080:8080 -p 50000:50000 --restart always jenkins/jenkins:lts-jdk11

trying to stop it with command docker kill gets response Cannot kill container: : permission denied

Also trying to stop container also gets permission denied.



Solution 1:[1]

I was able to remove jenkins from docker by uninstalling docker from the OS.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 glennop