Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are docker credentials saved in podman?

In docker whenever we login to a registry their credentials get saved in the config.json file right?

How is this done in podman? where are the credentials saved when I have podman installed and i do docker login into a registry? If i have podman installed, will the .docker/config.json not get created?

Can I know how this config.json functionality is handled in podman?

like image 321
inavis Avatar asked Oct 25 '25 05:10

inavis


1 Answers

Per the podman-login man page the credentials are stored in $XDG_RUNTIME_DIR/containers/auth.json (assuming Linux). For example, mine is stored in /run/user/1000/containers/auth.json. It will use .docker/config.json if it exists, but it will not create it.

If you want to change this behavior, you can specify the --authfile switch or set the REGISTRY_AUTH_FILE environment variable.

like image 110
frankiej Avatar answered Oct 26 '25 23:10

frankiej



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!