Docker Community Forums

Share and learn in the Docker community.

Error removing an image


(Luis Alejandro Rangel Sánchez) #1

Expected behavior

Be able to remove an image

Actual behavior

I cannot remove an image that is listed

Information

➜ postgres (develop) ✗ pinata diagnose -u

OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta9
Running diagnostic tests:
[OK] docker-cli
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Docker logs are being collected into /tmp/20160501-155643.tar.gz
Most specific failure is: No error was detected
Your unique id is: 58E19552-1191-4EF4-8846-11BCA738C12D
Please quote this in all correspondence.

Steps to reproduce the behavior

➜ postgres (develop) ✗ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nodesource/vivid 4.4.0 c2041fbfa25c 2 days ago 506.4 MB
nginx latest 6f8d099c3adc 3 days ago 182.7 MB
postgres 9.4 6196bca94565 3 weeks ago 264.7 MB
debian jessie 47af6ca8a14a 3 weeks ago 125.1 MB
phusion/baseimage 0.9.18 772dd063a060 4 months ago 305.2 MB

➜ postgres (develop) ✗ docker rmi postgres (develop|✚1…
Error response from daemon: No such image: postgres:latest

➜ postgres (develop) ✗ docker rmi -f postgres (develop|✚1…
Error response from daemon: No such image: postgres:latest


(David Maze) #2

You need to docker rmi postgres:9.4. If you leave out the version part, every Docker command assumes ...:latest.