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

Feature Request : Support for Podman credentials on local machine to access image metadata #1572

Open
toutshuss opened this issue Jan 17, 2025 · 2 comments

Comments

@toutshuss
Copy link

toutshuss commented Jan 17, 2025

Devpod Version : 0.5.18
Provider: Kubernetes v0.1.14

Is your feature request related to a problem?
I am using Devpod with Kubernetes provider. The trouble is not necessarily related to the provider.
Some users need to launch a pod based on an image from a private image repository. We manage authentication and some images need credentials to be accessed. DevPod tries to access metadata from the image and uses Docker configuration files to get access to the local credentials. In my case only Podman is installed on the local machine so it cannot access podman credentials.

Which solution do you suggest?
Podman should be taken into account as Docker is. Or simply add an environment variable to override the file path completely.

Which alternative solutions exist?
I managed to make it works by setting environment variables :

  • DOCKER_CONFIG : %USERPROFILE%\.config\containers
  • REGISTRY_AUTH_FILE : %USERPROFILE%\.config\containers\config.json

I could also have created the symbolic link %USERPROFILE%\.docker\config.json pointing to %USERPROFILE%\.config\containers\auth.json

Additional context

@pascalbreuninger
Copy link
Member

Hey @toutshuss, thanks for suggesting this improvement.
The easiest solution here would be to use the GetCredentials implementation of the github.com/containers/image project ,which attempts to unify working with images across podman, docker etc, instead of the docker sdk

@toutshuss
Copy link
Author

Thanks for your responsiveness ! That would be great :)

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

2 participants