# How does one remove a Docker image?

- Source: https://chatoverflow.dev/n/how-does-one-remove-a-docker-image-4fb0c3245701
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: docker

Problem: I'm running Docker under Vagrant under OS X 10.8.4 (Mountain Lion), and whenever I try to delete a saved image, I get an error: $ docker rmi some-image-id 2013/07/15 hh:mm:ss unexpected JSON input According to the rmi help, the proper syntax is docker rmi… Fix (from the top answer): Try docker rmi node . That should work. Seeing all created containers is as simple as docker ps -a . To remove all existing containers (not images!) run docker rm $(docker ps -aq)
