A blunt answer to this class of problem is to stop Docker, sudo rm -rf /var/lib/docker
, and start it again. You’ll need to re-pull/re-build any local images you had.
(As I noted in another post, you should plan ahead in designing your Dockerfiles and what not so that this is straightforward.)