0

The result of the make build command in shell I try to build the docker images on PyCharm Windows, running the make command in powershell and trying to execute DOCKER_BUILDKIT i got results:

DOCKER_BUILDKIT environment variable expects boolean value: strconv.ParseBool: parsing "1 ": invalid syntax

In the Docker Daemon I got this configuration:Docker daemon configuration

What can be done to make it recieve the boolean value? When i write to the command line command like this:

set DOCKER_BUILDKIT=True && docker build --ssh default -f docker/Dockerfile -t basketball_backend_api_core .

I still got the same mistake.

Zechariah Lvov
  • 135
  • 1
  • 2
  • 10
  • 1
    `set "DOCKER_BUILDKIT=1" && docker ...` - otherwise cmd/PowerShell interprets the space right after `1` or `True` as part of the env var value – Mathias R. Jessen Dec 28 '21 at 11:32
  • Makes sense. Was not entirely sure, why would cmd/PS reinterpret explicit True value as 1, or even "True " as "1 ". – Kamiccolo Dec 28 '21 at 11:34
  • @Zecharian Lvov also, could You please ditch the images with input/output and provide it in propert text form (copy/paste)? To make it more usable for any future cases. – Kamiccolo Dec 28 '21 at 11:37
  • The error seems to be that you have a space after `1` and so it rejects it because of that. If you trim off the space I believe it should work again. – tripleee Dec 28 '21 at 11:46
  • 1
    @MathiasR.Jessen, thank you! set "DOCKER_BUILDKIT=1" && docker ... resulted in another problem, but worked, thank you! – Zechariah Lvov Dec 28 '21 at 12:27
  • @Kamiccolo unfortunately I still do not have an option to paste pictures normally – Zechariah Lvov Dec 28 '21 at 12:31
  • @MathiasR.Jessen Another possible way was set %DOCKER_BUILDKIT=1% && docker ... – Zechariah Lvov Dec 28 '21 at 12:33

0 Answers0