Skip to content

Commit

Permalink
Merge pull request #237 from jperville/deprecate-daemon-restart-option
Browse files Browse the repository at this point in the history
Deprecate the 'restart' daemon option (obsolete since docker 1.2.0).
  • Loading branch information
Tom Duffield committed Nov 19, 2014
2 parents 6b1746d + 99eb437 commit de19152
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ no_proxy | NO_PROXY environment variable | String | nil
options | Additional options to pass to docker. These could be flags like "-api-enable-cors". | String | nil
pidfile | Path to use for daemon PID file | String | nil (implicitly /var/run/docker.pid)
ramdisk | Set DOCKER_RAMDISK when using RAM disk | TrueClass or FalseClass | false
restart | Restart containers on boot | TrueClass or FalseClass | auto-detected (see attributes/default.rb)
restart (*DEPRECATED*) | Restart containers on boot | TrueClass or FalseClass | auto-detected (see attributes/default.rb)
selinux_enabled | Enable SELinux | TrueClass or FalseClass | nil
storage_driver | Storage driver for docker | String | nil
storage_opt | Storage driver options | String, Array | nil
Expand Down
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,5 @@

# Other attributes

# DEPRECATED: will be removed in chef-docker 1.0
default['docker']['restart'] = false if node['docker']['container_init_type']
1 change: 1 addition & 0 deletions spec/systemd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
end
end

# DEPRECATED: will be removed in chef-docker 1.0
context 'when container_init_type is set' do
let(:chef_run) do
runner = ChefSpec::Runner.new
Expand Down
1 change: 1 addition & 0 deletions spec/sysv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
end
end

# DEPRECATED: will be removed in chef-docker 1.0
context 'when container_init_type is set' do
let(:chef_run) do
runner = ChefSpec::Runner.new
Expand Down
1 change: 1 addition & 0 deletions spec/upstart_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
end
end

# DEPRECATED: will be removed in chef-docker 1.0
context 'when container_init_type is set' do
let(:chef_run) do
runner = ChefSpec::Runner.new
Expand Down

0 comments on commit de19152

Please sign in to comment.