b6138a9 Fix for the {account} login fails when the account name contains '$'
📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝bin/periphery/src/docker.rs (+1 -1)
📄 Description
Just found a bug about the docker login process.
I tried Harbor as my image storage, their username always generate in the format of: robot$something+username.
I found that I could not set robot$something+username in the Registry Accounts Setting.
It will lead to Error response from daemon: Get "https://XXX/v2/": unauthorized
After some research, docker login for this kind of username needs to be docker login XXX --username 'robot$something+username' instead of docker login XXX --username robot$something+username stated in the code (username needs to be single quoted, found that the code are not quoted)
Not sure if normal username will be affected also
Tested in command line, single quoting a normal username on ghcr.io logins fine
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/moghtech/komodo/pull/385
**Author:** [@huzky-v](https://github.com/huzky-v)
**Created:** 3/28/2025
**Status:** ✅ Merged
**Merged:** 3/29/2025
**Merged by:** [@mbecker20](https://github.com/mbecker20)
**Base:** `1.17.1` ← **Head:** `fix-docker-login-account-$`
---
### 📝 Commits (1)
- [`b6138a9`](https://github.com/moghtech/komodo/commit/b6138a92d55785fd10a294c9bb1ca3371fe9bd5c) Fix for the {account} login fails when the account name contains '$'
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `bin/periphery/src/docker.rs` (+1 -1)
</details>
### 📄 Description
Just found a bug about the docker login process.
I tried Harbor as my image storage, their username always generate in the format of: `robot$something+username`.
I found that I could not set robot$something+username in the Registry Accounts Setting.
It will lead to
`Error response from daemon: Get "https://XXX/v2/": unauthorized`
After some research, docker login for this kind of username needs to be
`docker login XXX --username 'robot$something+username'` instead of `docker login XXX --username robot$something+username` stated in the code (username needs to be single quoted, found that the code are not quoted)
Not sure if normal username will be affected also
Tested in command line, single quoting a normal username on ghcr.io logins fine
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/385
Author: @huzky-v
Created: 3/28/2025
Status: ✅ Merged
Merged: 3/29/2025
Merged by: @mbecker20
Base:
1.17.1← Head:fix-docker-login-account-$📝 Commits (1)
b6138a9Fix for the {account} login fails when the account name contains '$'📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
bin/periphery/src/docker.rs(+1 -1)📄 Description
Just found a bug about the docker login process.
I tried Harbor as my image storage, their username always generate in the format of:
robot$something+username.I found that I could not set robot$something+username in the Registry Accounts Setting.
It will lead to
Error response from daemon: Get "https://XXX/v2/": unauthorizedAfter some research, docker login for this kind of username needs to be
docker login XXX --username 'robot$something+username'instead ofdocker login XXX --username robot$something+usernamestated in the code (username needs to be single quoted, found that the code are not quoted)Not sure if normal username will be affected also
Tested in command line, single quoting a normal username on ghcr.io logins fine
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.