Skip to content

Conversation

@laurazard
Copy link
Contributor

Description

Added known issue for CLI login address normalization issue.

docker/cli#5382
More info in: docker/cli#5383

Reviews

  • Technical review
  • Editorial review
  • Product review

@laurazard laurazard requested a review from aevesdocker as a code owner August 30, 2024 11:26
@github-actions github-actions bot added the area/desktop Issue affects a desktop edition of Docker. E.g docker for mac label Aug 30, 2024
@netlify
Copy link

netlify bot commented Aug 30, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 82366da
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/66d1f1932398430007c227e7
😎 Deploy Preview https://deploy-preview-20739--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines 76 to 79
- There is a known issue when authenticating against a registry in the Docker CLI (`docker login [registry address]`) where, if the provided registry address includes a repository/image name (such as `docker login index.docker.io/docker/welcome-to-docker`), the repository part (`docker/welcome-to-docker`) is not normalized and results in credentials being stored incorrectly, which causes subsequent pulls from the registry (`docker pull index.docker.io/docker/welcome-to-docker`) to not be authenticated. To prevent this, don't include any extraneous suffix in the registry address when running `docker login`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to call out that this was undocumented behavior, and the expected argument is the name of the registry( hostname (with optional port) hostname[:port]), so that users are recommended to use that format,
or would that be too much info?

cc @dvdksn (in case you have too suggestions for wording)

We should probably also have a note in the engine release notes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered that, then decided against it since it didn't feel super relevant to this section (listing known issues). I'm happy to change it though, I don't feel super strongly about it.

Adding it to the engine release notes makes sense – I'd also considered a little (temporary) callout in the CLI docs for docker login, or maybe a not-temporary one explaining that the expected input there is not to include anything but the registry hostname/port. Actually, that makes even more since now since we know some users are doing this (Gitlab).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me add a blurb so we can discuss wording.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we add release notes for 27.2?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just merged them

@laurazard laurazard force-pushed the add-release-login-callout branch from d423364 to c6bc744 Compare August 30, 2024 12:25
@github-actions github-actions bot added the area/engine Issue affects Docker engine/daemon label Aug 30, 2024
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
@laurazard laurazard force-pushed the add-release-login-callout branch from c6bc744 to 82366da Compare August 30, 2024 16:21
@laurazard
Copy link
Contributor Author

Included the suggested changes, PTAL @dvdksn @thaJeztah

@laurazard
Copy link
Contributor Author

(let's try to get this merged soon so people running into this can find it).

@dvdksn dvdksn merged commit 22306d3 into docker:main Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/desktop Issue affects a desktop edition of Docker. E.g docker for mac area/engine Issue affects Docker engine/daemon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants