question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker buildx command always fails in install check on Windows

See original GitHub issue

The subprocess.call overrides all environment variables instead of updating them to add the DOCKER_CLI_EXPERIMENTAL variable. This has the effect of the docker buildx binary being downloaded every time a build step is run.

https://github.com/gabrieldemarmiesse/python-on-whales/blob/2f542756e15a7aa99cb2e28f4c52fdd700aac912/python_on_whales/utils.py#L179-L187

It looks like this is handled properly where this function is called, so perhaps that env dictionary should be passed in with the docker binary argument:

https://github.com/gabrieldemarmiesse/python-on-whales/blob/2f542756e15a7aa99cb2e28f4c52fdd700aac912/python_on_whales/utils.py#L106-L110

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gabrieldemarmiessecommented, May 27, 2021

I’m glad it worked. I usually work on python-on-whales the thursday afternoon 😃 that’s why it was fast

1reaction
gabrieldemarmiessecommented, May 27, 2021

It will download the CLI if needed. But for buildx it seems overkill. We have tests for the downloading of dependencies, but I’m really surprised the bug you mentionned happened. #173 should fix the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker buildx build
The buildx build command starts a build using BuildKit. This command is similar to the UI of docker build command and takes the...
Read more >
'docker build' error: "failed to solve with frontend dockerfile.v0 ...
Actual behavior. I get the resulting error from the docker build command: ... Install Docker Desktop on Windows Home.
Read more >
error building docker image 'executor failed running [/bin/sh -c ...
In my case, docker was still using the cached RUN apt update && apt upgrade command, thus not updating the package sources.
Read more >
Troubleshooting errors with Docker commands when using ...
You may receive the error Filesystem verification failed when using the docker pull command to pull an image from an Amazon ECR repository...
Read more >
Why new Macs break your Docker build, and how to fix it
New Macs can break your Docker image build in unexpected ways; ... never gotten around to making one), installation will fail with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found