Bug 1472311 - docker-login documentation about default SERVER doesn't match reality
docker-login documentation about default SERVER doesn't match reality
Status: ASSIGNED
Product: Fedora
Classification: Fedora
Component: docker (Show other bugs)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tom Sweeney
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-18 08:56 EDT by Tadej Janež
Modified: 2017-09-28 13:09 EDT (History)
13 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tadej Janež 2017-07-18 08:56:45 EDT
Description of problem:

This is what's written in the docker-login man page:

... snip ...
Log in to a Docker Registry located on the specified SERVER.  You can
specify a URL or a hostname for the SERVER value. If you do not specify
a SERVER, the command uses Docker's public registry located at
https://registry-1.docker.io/ by default.  To get a username/password
for Docker's public registry, create an account on Docker Hub.
... snip ...

However, running 'sudo docker login' actually logs into https://registry.fedoraproject.org/v1/.

Version-Release number of selected component (if applicable):
docker-1.13.1-19.git27e468e.fc26.x86_64

How reproducible:
Always.

Steps to Reproduce:
[tadej@toronto ~]$ sudo docker login
Username: tjanez
Password: 
Login Succeeded

Actual results:
[tadej@toronto ~]$ sudo cat /root/.docker/config.json
{
	"auths": {
		"https://registry.fedoraproject.org/v1/": {
			"auth": "... removed ..."
		}
	}
}


Expected results:
Either 'sudo docker login' would login to Docker's public registry, i.e. https://index.docker.io/v1/, or the documentation is changed and users are instructed that they must use 'sudo docker login docker.io' to login to Docker's public registry.
Comment 1 Antonio Murdaca 2017-07-18 11:49:32 EDT
documentation needs to be fixed as docker login tries to login to the first "--add-registry" flag (which, if no flag is provided defaults to docker.io).

Note You need to log in before you can comment on or make changes to this bug.