mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
3853eb59d1
Previously, we only printed a warning if a storage driver was deprecated. The intent was to continue supporting these drivers, to allow users to migrate to a different storage driver. This patch changes the behavior; if the user has no storage driver specified in the daemon configuration (so if we try to detect the previous storage driver based on what's present in /var/lib/docker), we now produce an error, informing the user that the storage driver is deprecated (and to be removed), as well as instructing them to change the daemon configuration to explicitly select the storage driver (to allow them to migrate). This should make the deprecation more visible; this will be disruptive, but it's better to have the failure happening *now* (while the drivers are still there), than for users to discover the storage driver is no longer there (which would require them to *downgrade* the daemon in order to migrate to a different driver). With this change, `docker info` includes a link in the warnings that: / # docker info Client: Context: default Debug Mode: false Server: ... Live Restore Enabled: false WARNING: The overlay storage-driver is deprecated, and will be removed in a future release. Refer to the documentation for more information: https://docs.docker.com/go/storage-driver/ When starting the daemon without a storage driver configured explicitly, but previous state was using a deprecated driver, the error is both logged and printed: ... ERRO[2022-03-25T14:14:06.032014013Z] [graphdriver] prior storage driver overlay is deprecated and will be removed in a future release; update the the daemon configuration and explicitly choose this storage driver to continue using it; visit https://docs.docker.com/go/storage-driver/ for more information ... failed to start daemon: error initializing graphdriver: prior storage driver overlay is deprecated and will be removed in a future release; update the the daemon configuration and explicitly choose this storage driver to continue using it; visit https://docs.docker.com/go/storage-driver/ for more information When starting the daemon and explicitly configuring it with a deprecated storage driver: WARN[2022-03-25T14:15:59.042335412Z] [graphdriver] WARNING: the overlay storage-driver is deprecated and will be removed in a future release; visit https://docs.docker.com/go/storage-driver/ for more information Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
cluster | ||
config | ||
events | ||
exec | ||
graphdriver | ||
images | ||
initlayer | ||
links | ||
listeners | ||
logger | ||
names | ||
network | ||
stats | ||
testdata | ||
apparmor_default.go | ||
apparmor_default_unsupported.go | ||
archive.go | ||
archive_tarcopyoptions.go | ||
archive_tarcopyoptions_unix.go | ||
archive_tarcopyoptions_windows.go | ||
archive_unix.go | ||
archive_windows.go | ||
attach.go | ||
auth.go | ||
changes.go | ||
checkpoint.go | ||
cluster.go | ||
commit.go | ||
configs.go | ||
configs_linux.go | ||
configs_unsupported.go | ||
configs_windows.go | ||
container.go | ||
container_linux.go | ||
container_operations.go | ||
container_operations_unix.go | ||
container_operations_windows.go | ||
container_unix_test.go | ||
container_windows.go | ||
content.go | ||
create.go | ||
create_test.go | ||
create_unix.go | ||
create_windows.go | ||
daemon.go | ||
daemon_linux.go | ||
daemon_linux_test.go | ||
daemon_test.go | ||
daemon_unix.go | ||
daemon_unix_test.go | ||
daemon_unsupported.go | ||
daemon_windows.go | ||
daemon_windows_test.go | ||
debugtrap_unix.go | ||
debugtrap_unsupported.go | ||
debugtrap_windows.go | ||
delete.go | ||
delete_test.go | ||
dependency.go | ||
devices_linux.go | ||
disk_usage.go | ||
errors.go | ||
events.go | ||
events_test.go | ||
exec.go | ||
exec_linux.go | ||
exec_linux_test.go | ||
exec_windows.go | ||
export.go | ||
health.go | ||
health_test.go | ||
info.go | ||
info_unix.go | ||
info_unix_test.go | ||
info_windows.go | ||
inspect.go | ||
inspect_linux.go | ||
inspect_test.go | ||
inspect_windows.go | ||
keys.go | ||
keys_unsupported.go | ||
kill.go | ||
licensing.go | ||
licensing_test.go | ||
links.go | ||
list.go | ||
list_test.go | ||
list_unix.go | ||
list_windows.go | ||
logdrivers_linux.go | ||
logdrivers_windows.go | ||
logs.go | ||
logs_test.go | ||
metrics.go | ||
metrics_unix.go | ||
metrics_unsupported.go | ||
monitor.go | ||
mounts.go | ||
names.go | ||
network.go | ||
network_windows.go | ||
nvidia_linux.go | ||
oci_linux.go | ||
oci_linux_test.go | ||
oci_utils.go | ||
oci_windows.go | ||
oci_windows_test.go | ||
pause.go | ||
prune.go | ||
reload.go | ||
reload_test.go | ||
reload_unix.go | ||
reload_windows.go | ||
rename.go | ||
resize.go | ||
resize_test.go | ||
restart.go | ||
runtime_unix.go | ||
runtime_windows.go | ||
seccomp_disabled.go | ||
seccomp_linux.go | ||
seccomp_linux_test.go | ||
seccomp_unsupported.go | ||
secrets.go | ||
secrets_linux.go | ||
secrets_unsupported.go | ||
secrets_windows.go | ||
start.go | ||
start_unix.go | ||
start_windows.go | ||
stats.go | ||
stats_collector.go | ||
stats_unix.go | ||
stats_windows.go | ||
stop.go | ||
top_unix.go | ||
top_unix_test.go | ||
top_windows.go | ||
trustkey.go | ||
trustkey_test.go | ||
unpause.go | ||
update.go | ||
update_linux.go | ||
update_windows.go | ||
util_test.go | ||
volumes.go | ||
volumes_linux.go | ||
volumes_linux_test.go | ||
volumes_unit_test.go | ||
volumes_unix.go | ||
volumes_unix_test.go | ||
volumes_windows.go | ||
wait.go | ||
workdir.go |