Skip to content

Implement command to reset Docker storage #6555

@agners

Description

@agners

Description

There are quite some reports of Docker storage corruption. Likely this is caused by power outages during a container image write, or possible also just bit rot.

Today, Docker does not have a built-in feature to validate the authenticity of the container image on-disk. There is also no command which reliably rewrites a complete image: Deleting a container image is not reliable as some of the layers can be shared with other container images. This means that if corruption is in a shared layer, even a delete and re-pull of a particular image is not a guarantee for corruption to overcome.

Today, the only way to recover from such situations is to reinstall Home Assistant OS from scratch. This is a bit tedious and also requires a backup restore.

It would be nice to have a feature which simply allows to remove the complete Docker storage, forcing the system to re-download container images.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions