File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ include:
1616 - names:
1717 - {{ d.pkg.docker.config_file }}
1818 - {{ d.pkg.docker.environ_file }}
19+ - {{ d.pkg.docker.daemon_config_file }}
1920 - require:
2021 - sls: {{ sls_archive_clean if d.pkg.docker.use_upstream == ' archive' else sls_package_clean }}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ docker:
1717 # yamllint enable-line rule:line-length
1818 - DOCKER_OPTS="-s btrfs --dns 8.8.8.8"
1919 - export http_proxy="http://172.17.42.1:3128"
20+ daemon_config : {}
2021
2122 networks :
2223 - nginxnet
Original file line number Diff line number Diff line change 1111 its ( 'content' ) { should include 'DOCKER_OPTS="-s btrfs --dns 8.8.8.8"' }
1212 its ( 'content' ) { should include 'export http_proxy="http://172.17.42.1:3128"' }
1313 end
14+ describe file ( '/etc/docker/daemon.json' ) do
15+ it { should_not exist }
16+ end
1417end
Original file line number Diff line number Diff line change 66 describe file ( '/etc/default/docker' ) do
77 it { should_not exist }
88 end
9+ describe file ( '/etc/docker/daemon.json' ) do
10+ it { should_not exist }
11+ end
912end
Original file line number Diff line number Diff line change 1111 its ( 'content' ) { should include 'DOCKER_OPTS="-s btrfs --dns 8.8.8.8"' }
1212 its ( 'content' ) { should include 'export http_proxy="http://172.17.42.1:3128"' }
1313 end
14+ describe file ( '/etc/docker/daemon.json' ) do
15+ it { should be_file }
16+ its ( 'owner' ) { should eq 'root' }
17+ its ( 'group' ) { should eq 'root' }
18+ its ( 'mode' ) { should cmp '0640' }
19+ its ( 'content' ) { should include '"insecure-registries": []' }
20+ end
1421end
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ docker:
1717 # yamllint disable-line rule:line-length
1818 - DOCKER_OPTS="-s btrfs --dns 8.8.8.8"
1919 - export http_proxy="http://172.17.42.1:3128"
20+ daemon_config :
21+ insecure-registries : []
2022
2123 containers :
2224 running :
You can’t perform that action at this time.
0 commit comments