Skip to content

Commit

Permalink
Merge pull request #379 from cdenyar/disable_docker_buildkit
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Dec 24, 2020
2 parents 5d6ba50 + ec7354c commit b45c485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/kitchen/docker/helpers/image_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def build_image(state, dockerfile)
file.write(dockerfile)
file.close
docker_command("#{cmd} -f #{Shellwords.escape(dockerfile_path(file))} #{build_context}",
input: dockerfile_contents)
input: dockerfile_contents,
environment: { DOCKER_BUILDKIT: '0' })
ensure
file.close unless file.closed?
file.unlink
Expand Down

0 comments on commit b45c485

Please sign in to comment.