In ubuntu I just killed all processes when other solutions didn't work.
$ ps aux | grep docker
$ sudo kill {enter process id here}
I do not recommend doing this way.I was on reinstalling your OS, when these command saved some time for fixing my issues with containers.