[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Best way to delete images (local and in registry)



Hi Lorenz.

Am 20-04-2016 14:33, schrieb Lorenz Vanthillo:
I'm searching for the best way to delete unused docker images in my
cluster.
Because we're rebuilding images + pushing them to the registry.

When we perform
docker images -q |xargs docker rmi

We get:
REPOSITORY          TAG                 IMAGE ID            CREATED
       VIRTUAL SIZE
<none>              <none>              0fd6f6a7d8fb        6 days ago
       660.1 MB
<none>              <none>              cdcb32f9b621        2 weeks ago
       743.2 MB
<none>              <none>              9df362e36242        2 weeks ago
       794 MB
<none>              <none>              67de4dbed60e        2 weeks ago
       704 MB
<none>              <none>              999e0047a070        2 weeks ago
       543.6 MB

But oc get images gave us:

[snipp]

Is this fine?

And what's the best way to delete old images out of the registry?

Do you have tried this way?

https://docs.openshift.com/enterprise/3.1/admin_guide/pruning_resources.html#pruning-images

After wards we have run

docker rmi $(docker images -q)

on every node.

I'm not sure if the last step is still necessary in the current version.

Best Regards
Aleks


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]