Loading...

Remove docker containers from a dedicated image

Show all containers

vinh@omega:~/fo-elasticsearch> sudo docker ps -a | more
CONTAINER ID        IMAGE                    COMMAND                   CREATED      STATUS            PORTS NAMES
cdf0e35d5ff7        fo-elasticsearch:2.3.5   "/docker-entrypoint.s"    3 hours ago  Exited (1) 3 hours ago	sharp_archimedes
33f5cdae22c4        fo-elasticsearch:2.3.5   "/docker-entrypoint.s"    3 hours ago  Exited (1) 3 hours ago	stupefied_bose
55653d309704        fo-elasticsearch:2.3.5   "/docker-entrypoint.s"    3 hours ago  Exited (1) 3 hours ago	hopeful_lichterman
2a2e6fa1f301        fo-elasticsearch:2.3.5   "/docker-entrypoint.s"    3 hours ago  Exited (1) 3 hours ago	mad_bose
de360f421c59        fo-elasticsearch:2.3.5   "/docker-entrypoint.s"    3 hours ago  Exited (1) 3 hours ago	lonely_hopper

Remove image fo-elasticsearch:2.3.5 with force option

vinh@omega:~/fo-elasticsearch> sudo docker rmi -f fo-elasticsearch:2.3.5
Untagged: fo-elasticsearch:2.3.5
Deleted: 769a7e694463af988bb4642372c224205494ea89da10194ecbd46fff44b05b80
Deleted: 6399ea8e5d8811fd506a144c25d4d59165f5abda6471a2f3843ef625c0ffa70e
Deleted: f13b31b07c7b84b1061481777de2e961fec1e63aa71b4a7f17ade8da0ed71d1f
Deleted: e83558c706eb8ac7ebda0746637f173d244699897a6780381089a8319b93d13f
Deleted: 220e1245516feab963d72a868e68a510b00098b82cdd11f838882f5ccc937f5e
Deleted: 35508b4a2d87dadfb888c4738763057ea58c5f586b03223432503a0453b7e8bc
Deleted: 610154ead36fd555e5be3ddab3e16e95e577ec1a76db1a4017245fc77b02e420
Deleted: 27123f13de8b49d0843e86aada4a19853d920642d743fbf760c79c76e13d05f6
Deleted: 2f5c85d694978c3090d5845fe0754098a0d3fba3752cd6d962bec67a03d8aad3
Deleted: 3870261826c31850f44a54d0f49a960eaec95a3bf16da133f923a0468dc3fceb
Deleted: e7fa446d863b19d8c543f8bf1e049a6fd9b6f04dfa28a56297a665ce41f29d61
Deleted: 90b881a329356ba572805c8ef20be462f95d1596e4db6795a8a33735f03a4c5a
Deleted: 23209cfa01ab5cf518a557a34c00e28e824b182e62312a71cde260dd5b69a6b4
Deleted: 77f39095a9a6f70b9d04008a8f45d016175a622584199128b3b344222b626bb9
Deleted: 05d62645704a41a1462ac5465744ad02b08c7e30f25530f2ceb94f7c20487ec7
Deleted: 47d37d621283bf7c0bc5f06dadb19ef7c53509018e6112a74511620e61a79e14