docker rmi -f registry
    Error: No such image: registry

    docker images
    REPOSITORY TAG IMAGE ID CREATED SIZE
    registry latest 678dfa38fcfa 3 weeks ago 26.2MB

    解决方法

    1. systemctl stop docker.service
    2. rm -rf /var/lib/docker
    3. systemctl start docker.service

    备注: 该操作会删除所有的镜像 请提前做好备份