You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
kind bug
Description
If you login to a registry server with docker login and then later try to log in the same registry server with podman login, you're told the credentials already exist. If you try to logout using podman logout you're told you're not logged in.
Steps to reproduce the issue:
docker login quay.io
podman login quay.io
podman logout quay.io
Describe the results you received:
# docker login quay.io
Username: tomsweeneyredhat
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
# podman login quay.io
Authenticating with existing credentials...
Existing credentials are valid. Already logged in to quay.io
# podman logout quay.io
Error: error logging out of "quay.io": error updating "/run/user/0/containers/auth.json": not logged in
Describe the results you expected:
I'm not quite sure what the expected behaviour should be. My leaning is the first login message should change from
Existing credentials are valid. Already logged in to quay.io
to
Existing credentials are valid. Already logged in to quay.io via docker login.
and/or perhaps a similar message should be added to podman logout rather than the error. Perhaps
Existing credentials were established via docker login. Please use docker logout instead.
We could instead just remove the docker credentials, but I'm a bit leery about that. Or we could just ignore that the credentials are in the docker cache and create our own. That though might cause confusion if the user logs into both, then later removes from one and is still able to authenticate even though they'd logged out.
Additional information you deem important (e.g. issue happens only occasionally):
n/a
Output of podman version:
$ podman version
Version: 1.1.2
RemoteAPI Version: 1
Go Version: go1.11.5
Git Commit: a95a49d3038462d033f84ac314ec8a3064a99cff
Built: Tue Mar 5 13:10:31 2019
OS/Arch: linux/amd64
I think we should check to see if you are logged in via podman if not then tell the user it is using docker login, If I try podman logout, and we are not logged in, then check if docker auth exists and report it as an error, But do not touch the file.
use docker.checkAuth() in /containers/image/pkg/docker/config/config.go will cause import cycle problem and needs to pass context as an argument.
Can I use checkAuth in podman logout? if not logged in podman and checkAuth success I will assume it is logged with docker?
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
kind bug
Description
If you login to a registry server with
docker login
and then later try to log in the same registry server withpodman login
, you're told the credentials already exist. If you try to logout usingpodman logout
you're told you're not logged in.Steps to reproduce the issue:
docker login quay.io
podman login quay.io
podman logout quay.io
Describe the results you received:
Describe the results you expected:
I'm not quite sure what the expected behaviour should be. My leaning is the first login message should change from
to
and/or perhaps a similar message should be added to podman logout rather than the error. Perhaps
We could instead just remove the docker credentials, but I'm a bit leery about that. Or we could just ignore that the credentials are in the docker cache and create our own. That though might cause confusion if the user logs into both, then later removes from one and is still able to authenticate even though they'd logged out.
Additional information you deem important (e.g. issue happens only occasionally):
n/a
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: