Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-g and --graph flags on dockerd are deprecated in favor of --data-root #957

Open
agarbutt opened this issue Jan 12, 2018 · 4 comments
Open

Comments

@agarbutt
Copy link

Cookbook version

3.0.0

Chef-client version

12.18

Platform Details

Ubuntu 16.04.3 LTS

Scenario:

Remove warnings of deprecated features from dockerd minimum version 17.05.
Disabled by default in version 17.10

See: https://docs.docker.com/engine/deprecated/#-g-and---graph-flags-on-dockerd

Steps to Reproduce:

Install the docker service on the host with a graph value defined.

docker_service 'default' do
  graph '/opt/docker-graph'
  action [:create, :start]
end

On the converged host, login, use the command journalctl -xe | grep deprecated

Expected Result:

No warnings from dockerd.

Actual Result:

Entry in systemd journal with the message from the dockerd
"The \"-g / --graph\" flag is deprecated. Please use \"--data-root\" instead"

@tas50
Copy link
Contributor

tas50 commented Jan 14, 2018

Fixed in 72edd8d

@erinn
Copy link

erinn commented Jan 17, 2018

The removal of --graph has broken the docker version that is provided by RHEL/CentOS 7, I'd suggest some logic in there instead of just dropping the flag. Unless the intent is not to support the built in version of docker on CentOS.

@binlialfie
Copy link

binlialfie commented Mar 16, 2018

Still broken for CentOS 7, any work around?

@joerg
Copy link

joerg commented May 14, 2018

This also breaks any RHEL 6 installations, since the latest Docker version for this is 1.7.1 which only supports "--graph".
As a workaround I use this:

if node['platform_version'].start_with?('7')
  data_root '/docker'
elsif node['platform_version'].start_with?('6')
  misc_opts '--graph=/docker'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants