Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

porter build fails & switch context message is wrong #3028

Open
agardnerIT opened this issue Mar 23, 2024 · 2 comments
Open

porter build fails & switch context message is wrong #3028

agardnerIT opened this issue Mar 23, 2024 · 2 comments
Assignees
Labels
hold Waiting for something else before moving forward

Comments

@agardnerIT
Copy link

Following the "getting started" guide to create a bundle and porter build fails.

The suggested fix is also wrong. It should be:

docker context use default

Logs

% porter build
Copying porter runtime ===> 
Copying mixins ===> 
Copying mixin exec ===> 
Building invocation image
use `docker --context=default buildx` to switch to context "default"
unable to build CNAB invocation image: use `docker --context=default buildx` to switch to context "default"
unable to build CNAB invocation image: use `docker --context=default buildx` to switch to context "default"

Porter Version

% porter version
porter v1.0.14 (0e739d88)

Fix

Running this works:

docker context use default
porter build
@agardnerIT agardnerIT added the bug Oops, sorry! label Mar 23, 2024
@nwsteenberg
Copy link

Error is originating from buildx lib: buildx/builder/builder.go
I agree that it might not make sense in a Porter context, and the suggested fix will not do anything.

@schristoff
Copy link
Member

This should be fixed in versions 1.0.16+ - could you try in the newer versions and let me know if you're still seeing it?

@schristoff schristoff self-assigned this Mar 27, 2024
@schristoff schristoff added hold Waiting for something else before moving forward and removed bug Oops, sorry! labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Waiting for something else before moving forward
Projects
None yet
Development

No branches or pull requests

3 participants