Daniil Shevelev
Daniil Shevelev

Reputation: 12027

How to remove a Docker image from the Bluemix Hub?

In the official docs I did not find any mentioning of how to remove a Docker image from Bluemix.
Is it possible?
What is the "ice" command for that?

The rmi command does not work with ice:

ice: error: argument subparser_name: invalid choice: 'rmi' (choose from 'login', 'tlogin', 'ps', 'run', 'inspect', 'logs', 'start', 'stop', 'restart', 'pause', 'unpause', 'rm', 'images', 'search', 'info', 'ip', 'help')

Upvotes: 1

Views: 679

Answers (3)

edevregille
edevregille

Reputation: 209

I have been able to delete images on Bluemix using the IBM Containers Cloud Foundry plug-in (documentation).

docker@boot2docker:~$ cf ic login
docker@boot2docker:~$ cf ic rmi <image URL>

Upvotes: 0

Jeff Sloyer
Jeff Sloyer

Reputation: 4964

You can download the new CLI at https://static-ice.ng.bluemix.net/icecli-2.0.zip

Once you download it install it with the following.

sudo pip install icecli-2.0.zip --upgrade

Please make sure you have at least Python 2.7.

This will upgrade the CLI and then you will have the rmi command.

usage: ice rmi [-h] [--registry REGISTRY] [--key PSSWD] IMAGE
ice rmi: error: too few arguments

Upvotes: 2

Jeff Sloyer
Jeff Sloyer

Reputation: 4964

Give the command ice rm <container> a try.

[08:40 AM] jsloyer@Jeffs-MacBook-Pro [Downloads]>ice rm
Target is container cloud. Invoking cloud service...
usage: ice rm [-h] CONTAINER
ice rm: error: too few arguments

More info at http://www.ng.bluemix.net/docs/#services/Containers/index.html#container_cli__rm

Upvotes: 0

Related Questions