moby/volume
Sebastiaan van Stijn 01fd23b625
Fix volume CreatedAt being altered on initialization
The CreatedAt date was determined from the volume's `_data`
directory (`/var/lib/docker/volumes/<volumename>/_data`).
However, when initializing a volume, this directory is updated,
causing the date to change.

Instead of using the `_data` directory, use its parent directory,
which is not updated afterwards, and should reflect the time that
the volume was created.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-01-03 16:57:04 +01:00
..
drivers golangci-lint: update to v1.49.0 2022-09-23 23:31:27 +02:00
local Fix volume CreatedAt being altered on initialization 2023-01-03 16:57:04 +01:00
mounts volume: use strings.Cut() and minor refactor 2022-12-21 11:09:00 +01:00
service daemon/disk_usage: Use context aware singleflight 2022-11-29 16:46:19 +01:00
testutils linting: gosec: fix or suppress G112, G114 in test code 2022-09-04 15:36:51 +02:00
volume.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00