"docker rmi" - Remove Docker Images

Q

How to run Docker images with the "docker rmi" command?

✍: FYIcenter.com

A

If some Hyperledger Fabric scripts failed to remove Docker images, you can remove them manually with the "docker rmi" command.

1. Identify the image with REPOSITORY and TAG with the "docker images" command:

$ docker images 

REPOSITORY              TAG     CREATED        SIZE
hyperledger/fabric-ca   1.4.0   3 months ago   244MB
...

2. Remove the above image with the "docker rmi REPOSITORY:TAG" command:

$ docker rmi hyperledger/fabric-ca:1.4.0

Untagged: hyperledger/fabric-ca:1.4.0
Untagged: hyperledger/fabric-ca@sha256:c1dce534d9e9202697e0aaad7c55...
Deleted: sha256:1a804ab74f58dc581eb76da36d86e28dcffc18d3d5143626d0f...
Deleted: sha256:e000fb811b7177c95b7d5fc8af7c3d7735526d54ffe122ffe66...
Deleted: sha256:4d09edfe96013557ec55bbfede65d5ffabc4161179074b06594...
Deleted: sha256:3326495dfbeec13b91a946224610d6e2c7eece3f08af89f10f3...
Deleted: sha256:7db121a3cc12cb1dc1b8fccaa538186250c61705e13950bc9b8...
...

 

⇒ Reinstall basic-network with Latest Images

⇐ teardown.sh - Teardown basic-network

⇑ fabric-samples/basic-network

⇑⇑ Hyperledger Tutorials

2020-04-14, 1037👍, 0💬