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

skaffold support for podman login store #9605

Open
kaplan-michael opened this issue Dec 10, 2024 · 1 comment
Open

skaffold support for podman login store #9605

kaplan-michael opened this issue Dec 10, 2024 · 1 comment

Comments

@kaplan-michael
Copy link

Expected behavior

podman login <registry>
skaffold build
skaffold is able to build and push images
(podmans docker compatibility is enabled, so builds work fine)

Actual behavior

skaffold fails on missing registry credentials, as it can't find $XDG_RUNTIME_DIR/containers/auth.json

Information

  • Skaffold version: v2.13.2
  • Operating system: Fedora 41
  • Installed via: github release
  • Contents of skaffold.yaml:
apiVersion: skaffold/v4beta4
kind: Config
metadata:
  name: podman test

build:
  tagPolicy:
    gitCommit:
      variant: CommitSha
      ignoreChanges: true

  artifacts:
    - image: <private registry>
      context: .
      docker:
        dockerfile: ./container_images/Containerfile
        buildArgs:
          GIT_HASH: "{{.GIT.COMMIT}}"
@kaplan-michael
Copy link
Author

so I have resolved it by symlinking podmans auth.json to config.json
ln -s $XDG_RUNTIME_DIR/containers/auth.json ~/.docker/config.json

It would still be nice to support that directly in skaffold, eg. look at that path for creds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant