xxxxxxxxxx
Docker images act as a set of instructions to build a Docker container.
xxxxxxxxxx
A Docker image is a file used to execute code in a Docker container. Docker images act as a set of instructions to build a Docker container, like a template. A Docker image contains application code, libraries, tools, dependencies and other files needed to make an application run.
xxxxxxxxxx
# Remove image by image ID or repository:tag
docker rmi ffcd22192b23
docker rmi ol7_122:latest
# Force the remove using "-f" or "--force".
docker rmi -f ffcd22192b23
docker rmi --force ol7_122:latest
# Remove images matching list.
docker rmi -f $(docker images -q -f "dangling=true")