Skip to content

Commit

Permalink
Fix command flag (dev-sec#72)
Browse files Browse the repository at this point in the history
Fix the placement of "--no-trunc" flag of docker command
  • Loading branch information
nnickie23 committed Dec 2, 2021
1 parent f4f3c02 commit 90b8aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controls/container_images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
ref 'caching and apt-get update', url: 'https://github.com/moby/moby/issues/3313'

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

docker.images.ids.each do |id|
describe command("docker --no-trunc history #{id}| grep 'ADD'") do
describe command("docker history #{id} --no-trunc| grep 'ADD'") do
its('stdout') { should eq '' }
end
end
Expand Down

0 comments on commit 90b8aad

Please sign in to comment.