I have solved the issue by doing following steps and I hope it helps.
docker ps -a
to list all the containers in your system. docker rm --force name_of_container
I had problem using NIFI and I have removed and reinstalled using docker. Good luck.