Skip to content

Docker wrapper doesn't remove image after task has finished #6196

@computezrmle

Description

@computezrmle

Please verify.
If necessary please provide a patch.
Don't know if docker behaves differently.

At the end of my docker task logs (with podman) a command sequence like this can be found:

running docker command: stop boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4472926-82_1
command output:
boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4472926-82_1
running docker command: container rm boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4472926-82_1
command output:
boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4472926-82_1
running docker command: image rm boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4472926-82

stop seems to be OK.
container rm seems to be OK

image rm doesn't seem to be OK (at least if podman is used).

According to the podman manual rm removes containers while rmi is the command to remove images.
As a result unused images remain on the local storage until removed manually.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions