Skip to content

why login registry auth.json always been cleared? #9454

Answered by TomSweeneyRedHat
runseason asked this question in Q&A
Discussion options

You must be logged in to vote

@runseason good question. This is indeed one area where Podman differs from Docker and it was done on purpose to make your credentials more secure. As noted in the man page for podman login, the default location for the auth.json file where the credentials are stored is ${XDG_RUNTIME_DIR}/containers/auth.json which is generally somewhere in the /run directory tree, /run/user/{userid}. As you're probably aware, files in the/run directory are removed when you log out. We did this to make it a little harder for someone to grab them.

If you would prefer, you could move the credentials to another location where they won't be removed at logout using the podman login --authfile {file_location} o…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@TomSweeneyRedHat
Comment options

Answer selected by TomSweeneyRedHat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants