Skip to content
Permalink
Browse files

gitian-build.py: Fixing check for docker command.

  • Loading branch information
jonathancross committed Jan 10, 2020
1 parent 996fa78 commit 019c1dc0bb5fc90ecb6480a0541c074a292bfe18
Showing with 5 additions and 2 deletions.
  1. +5 −2 contrib/gitian/gitian-build.py
@@ -36,8 +36,11 @@ def setup():
os.chdir('..')
make_image_prog = ['bin/make-base-vm', '--suite', 'bionic', '--arch', 'amd64']
if args.docker:
if not subprocess.call(['docker', '--help'], shell=False, stdout=subprocess.DEVNULL):
print("Please install docker first manually")
try:
subprocess.check_output(['docker', '--help'])
except:
print("ERROR: Could not find 'docker' command. Ensure this is in your PATH.")
sys.exit(1)
make_image_prog += ['--docker']
elif not args.kvm:
make_image_prog += ['--lxc']

0 comments on commit 019c1dc

Please sign in to comment.
You can’t perform that action at this time.