From 3c2bc4b84190dd0b2b7f545e65899652b8715188 Mon Sep 17 00:00:00 2001 From: Andreas Schmidt Date: Wed, 11 Apr 2018 12:10:34 +0200 Subject: [PATCH 1/2] add --no-trunc to docker history command to prevent unwanted utf8 output --- controls/container_images.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/container_images.rb b/controls/container_images.rb index 449cb53..4dd5105 100644 --- a/controls/container_images.rb +++ b/controls/container_images.rb @@ -178,7 +178,7 @@ ref 'caching and apt-get update', url: 'https://github.com/moby/moby/issues/3313' docker.images.ids.each do |id| - describe command("docker history #{id}| grep -e 'update'") do + describe command("docker --no-trunc history #{id}| grep -e 'update'") do its('stdout') { should eq '' } end end From b30425ab8532c1a6786674b20d4243251e154915 Mon Sep 17 00:00:00 2001 From: Andreas Schmidt Date: Wed, 11 Apr 2018 12:10:34 +0200 Subject: [PATCH 2/2] add --no-trunc to docker history command to prevent unwanted utf8 output --- controls/container_images.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/container_images.rb b/controls/container_images.rb index 4dd5105..30c2c0a 100644 --- a/controls/container_images.rb +++ b/controls/container_images.rb @@ -220,7 +220,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 history #{id}| grep 'ADD'") do + describe command("docker --no-trunc history #{id}| grep 'ADD'") do its('stdout') { should eq '' } end end