Skip to content

cannot delete old image after commit a new image #25602

@wanyoung1231

Description

@wanyoung1231

Output of docker version:

Docker version 1.12.0, build 8eab29e

Output of docker info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 8
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host null overlay
Swarm: active
 NodeID: cx8a22b3hd7dy2j0mz94qvh76
 Is Manager: true
 ClusterID: 7l3qy05hxzxm643ss2e43plby
 Managers: 1
 Nodes: 1
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot interval: 10000
  Heartbeat tick: 1
  Election tick: 3
 Dispatcher:
  Heartbeat period: 5 seconds
 CA configuration:
  Expiry duration: 3 months
 Node Address: 192.168.99.100
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.16-boot2docker
Operating System: Boot2Docker 1.12.0 (TCL 7.2); HEAD : e030bab - Fri Jul 29 00:29:14 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.955 GiB
Name: default
ID: T2ZE:ZFQB:CYGA:FZU7:6NZX:HKCC:T4JM:6WTU:SJWH:TQMT:YRCM:PFAR
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 31
 Goroutines: 117
 System Time: 2016-08-11T05:56:45.535692262Z
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Insecure Registries:
 127.0.0.0/8

Additional environment details (AWS, VirtualBox, physical, etc.):

Steps to reproduce the issue:

  1. docker pull phusion/baseimage
  2. docker exec -it baseimage bash
  3. apt-get -y install python3-pip libjpeg8-dev postgresql libpq-dev libmysqlclient-dev nginx rsyslog
  4. docker commit 1462db610480 phusion/baseimage:latest sha256:49d46f19abce1a6e632c63ae93288ac4a60ef0ffddd549e8c9a6523e8d061a9d

Describe the results you received:

docker images
REPOSITORY                       TAG                 IMAGE ID                 CREATED               SIZE
phusion/baseimage             latest              49d46f19abce        8 seconds ago       551.6 MB
phusion/baseimage             <none>          888116a6733a        18 hours ago          240.9 MB

docker rmi 888116a6733a
Error response from daemon: conflict: unable to delete 888116a6733a (cannot be forced) -     image has dependent child images

Describe the results you expected:

I want to remove <none> image

Additional information you deem important (e.g. issue happens only occasionally):

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/storageImage Storagekind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions