1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/config
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
..
builder.go Add GoDoc to fix linting validation 2019-10-21 21:36:22 +02:00
builder_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
config.go daemon: complete the "--graph" / "-g" deprecation 2022-08-18 18:44:17 +02:00
config_linux.go daemon/config: remove unneeded alias 2022-04-17 13:08:34 +02:00
config_linux_test.go daemon/config: use more assertions in tests 2022-06-29 19:59:23 +02:00
config_test.go daemon/config: use more assertions in tests 2022-06-29 19:59:23 +02:00
config_windows.go Allow switching Windows runtimes. 2021-09-23 17:44:04 +00:00
config_windows_test.go daemon/config: use more assertions in tests 2022-06-29 19:59:23 +02:00
opts.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00