Skip to content

Commit 90b8aad

Browse files
committed
Fix command flag (dev-sec#72)
Fix the placement of "--no-trunc" flag of docker command
1 parent f4f3c02 commit 90b8aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controls/container_images.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
ref 'caching and apt-get update', url: 'https://github.com/moby/moby/issues/3313'
175175

176176
docker.images.ids.each do |id|
177-
describe command("docker --no-trunc history #{id}| grep -e 'update'") do
177+
describe command("docker history #{id} --no-trunc| grep -e 'update'") do
178178
its('stdout') { should eq '' }
179179
end
180180
end
@@ -216,7 +216,7 @@
216216
ref 'Best practices for writing Dockerfiles', url: 'https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/'
217217

218218
docker.images.ids.each do |id|
219-
describe command("docker --no-trunc history #{id}| grep 'ADD'") do
219+
describe command("docker history #{id} --no-trunc| grep 'ADD'") do
220220
its('stdout') { should eq '' }
221221
end
222222
end

0 commit comments

Comments
 (0)