In windows environment,
In the command prompt , enter docker stop $(docker ps -aq), an error will be reported
unknown shorthand flag: 'a' in -aq)
See 'docker stop --help'.
Run windows powershell as an administrator and enter this command. The following instructions are the same.
1. Delete the container
1) Stop all containers first
docker stop $(docker ps -aq)
2) Delete all containers again
docker rm $(docker ps -aq)
2. Delete the mirror
1) Delete a single image
docker rmi <image id>
View image id through docker images
2) Delete all mirrors
docker rmi $(docker images -q)