Skip to content

Commit 87f756c

Browse files
aschmidt75chris-rock
authored andcommitted
Fix utf8 truncated output (#53)
* add --no-trunc to docker history command to prevent unwanted utf8 output * add --no-trunc to docker history command to prevent unwanted utf8 output
1 parent 7bbd2e4 commit 87f756c

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
@@ -178,7 +178,7 @@
178178
ref 'caching and apt-get update', url: 'https://github.com/moby/moby/issues/3313'
179179

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

222222
docker.images.ids.each do |id|
223-
describe command("docker history #{id}| grep 'ADD'") do
223+
describe command("docker --no-trunc history #{id}| grep 'ADD'") do
224224
its('stdout') { should eq '' }
225225
end
226226
end

0 commit comments

Comments
 (0)