Description
This feature only needs to be implemented on the Rust Client.
Calculate the task ID using the SHA256 of the image blob. Currently, Dragonfly computes the Task ID based on the Download URL. If the registry domains differ but the blob is identical, this leads to multiple downloads and data redundancy. Therefore, compute the task ID based on the SHA256, and provide a flag in the client configuration to control whether this feature is enabled, with the default value being enabled.
Task ID Generator: https://github.com/dragonflyoss/client/blob/main/dragonfly-client-util/src/id_generator/mod.rs
Link
Client Repo: https://github.com/dragonflyoss/client