Repository navigation
fix (buildx) : BuildX failing for Docker CLI on MacOS - #1754
Merged
rohanKanojia merged 1 commit intoFeb 11, 2024
Merged
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1754 +/- ##
============================================
+ Coverage 65.33% 65.73% +0.39%
- Complexity 2284 2290 +6
============================================
Files 172 172
Lines 10191 10184 -7
Branches 1408 1405 -3
============================================
+ Hits 6658 6694 +36
+ Misses 2983 2936 -47
- Partials 550 554 +4
|
rohanKanojia
force-pushed
the
pr/buildx-push-fails-mac
branch
8 times, most recently
from
February 11, 2024 17:35
3d893c3 to
1022e5d
Compare
+ Revert workaround for checking docker version for checking whether to add `docker --config` flag or not. We need to always add config to builder whenever it involves pulling or pushing images. + Currently Docker CLI on Mac OS don't seem to respect `--config` flag. When DMP tries to override default Docker config directory by providing `--config` flag, Docker CLI is no longer able to recognize buildx options. This seems to happening for scenarios where docker-buildx is installed in `~/.docker/cli-plugins`, whenever `docker --config new/path/config` is provided docker CLI uses new config path (which does not contain buildx). + Add a workaround to copy `docker-buildx` binary to temporary config directory created for docker buildx build. This seems to make docker recognize buildx even after config override. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia
force-pushed
the
pr/buildx-push-fails-mac
branch
from
February 11, 2024 18:41
1022e5d to
22de745
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Related to #1749
Revert workaround for checking docker version added in fix (buildx) : Always pass --config option for latest versions of Docker CLI (#1701) #1703 for checking whether to add
docker --configflag or not. We need to always add config to builder whenever it involves pulling or pushing images.Currently Docker CLI on Mac OS don't seem to respect
--configflag. When DMP tries to override default Docker config directory by providing--configflag, Docker CLI is no longer able to recognize buildx options. This seems to happening for scenarios where docker-buildx is installed in~/.docker/cli-plugins, wheneverdocker --config new/path/configis provided docker CLI uses new config path (which does not contain buildx). See Buildx not work properly on Mac with Apple Silicon chip docker/for-mac#6928 (comment)Add a workaround to copy
docker-buildxbinary to temporary config directory created for docker buildx build. This seems to make docker recognize buildx even after config override.