moby--moby/daemon
Sebastiaan van Stijn d1d9fd50c2
daemon: complete the "--graph" / "-g" deprecation
The `-g` / `--graph` options were soft deprecated in favor of `--data-root` in
261ef1fa27 (v17.05.0) and at the time considered
to not be removed. However, with the move towards containerd snapshotters, having
these options around adds additional complexity to handle fallbacks for deprecated
(and hidden) flags, so completing the deprecation.

With this patch:

    dockerd --graph=/var/lib/docker --validate
    Flag --graph has been deprecated, Use --data-root instead
    unable to configure the Docker daemon with file /etc/docker/daemon.json: merged configuration validation from file and command line flags failed: the "graph" config file option is deprecated; use "data-root" instead

    mkdir -p /etc/docker
    echo '{"graph":"/var/lib/docker"}' > /etc/docker/daemon.json

    dockerd --validate
    unable to configure the Docker daemon with file /etc/docker/daemon.json: merged configuration validation from file and command line flags failed: the "graph" config file option is deprecated; use "data-root" instead

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit b58de39ca7)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-08-18 18:44:17 +02:00
..
cluster vendor: github.com/moby/swarmkit/v2 v2.0.0-20220721174824-48dd89375d0a 2022-08-09 14:05:30 +02:00
config daemon: complete the "--graph" / "-g" deprecation 2022-08-18 18:44:17 +02:00
events
exec container/exec: Support ConsoleSize 2022-06-24 11:54:25 +02:00
graphdriver Fix file capabilities droping in Dockerfile 2022-07-28 09:39:21 +02:00
images gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
initlayer
links
listeners
logger logger/journald: fix SA4011: ineffective break statement 2022-07-20 16:57:22 +02:00
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 gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
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/config: set default MTU when initializing config 2022-06-29 19:59:16 +02:00
daemon_linux.go
daemon_linux_test.go
daemon_test.go
daemon_unix.go daemon: support other containerd runtimes (MVP) 2022-07-29 20:36:50 +02:00
daemon_unix_test.go
daemon_unsupported.go
daemon_windows.go Windows: Re-create custom NAT networks after restart if missing from HNS 2022-07-23 23:16:23 -07:00
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 container/exec: Support ConsoleSize 2022-06-24 11:54:25 +02:00
exec_linux.go
exec_linux_test.go
exec_windows.go
export.go
health.go container/exec: Support ConsoleSize 2022-06-24 11:54:25 +02:00
health_test.go
id.go
info.go
info_unix.go gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
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 daemon/restart: Don't mutate AutoRemove when restarting 2022-07-29 16:49:56 +02:00
mounts.go
names.go
network.go replace golint with revive, as it's deprecated 2022-07-04 10:15:54 +02:00
network_windows.go
nvidia_linux.go
oci_linux.go
oci_linux_test.go
oci_opts.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 daemon/restart: Don't mutate AutoRemove when restarting 2022-07-29 16:49:56 +02:00
runtime_unix.go daemon: support other containerd runtimes (MVP) 2022-07-29 20:36:50 +02:00
runtime_unix_test.go daemon: support other containerd runtimes (MVP) 2022-07-29 20:36:50 +02:00
runtime_windows.go
seccomp_linux.go
seccomp_linux_test.go
seccomp_unsupported.go
secrets.go
secrets_linux.go
secrets_unsupported.go
secrets_windows.go
start.go daemon/restart: Don't mutate AutoRemove when restarting 2022-07-29 16:49:56 +02:00
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 gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
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_windows.go
wait.go
workdir.go