Skip to content

docker-registry-sync.py fills local /var partition when pushing to private registry #128

Description

@davewujcik

Hi, I'm trying to use your docker-registry-sync.py script to populate a disconnected registry for an OCP 3.11 install at a customer site.

I noticed that the script caches the images locally on the server running the script and is storing the images in /var/lib/docker/overlay2

We don't have enough storage on the box running the script to handle this and it would be real convenient if the script had an option to delete each local image after it pushes to the remote registry.

The script also doesn't seem to have any functionality to clean up after itself at the end of the run. This will lead to eventual filling of any partition as the registry images come out with newer versions/etc. All the old versions will remain on the filesystem until manually deleted via "docker image rm..."

Thanks,

-- Dave Wujcik
(dwujcik) at (red hat)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions