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
If you collaborate with others, make sure everyone pushes to repositories under the **same** Docker Hub username. Mixing usernames like `alice/solver` and `bob/detector` in one `active_commit` will break image pulls.
33
+
All entries must use the **same** Docker Hub username. Mixing usernames like `alice/solver` and `bob/detector` in one `active_commit.yaml` will cause authentication failures because only one set of credentials is used for pulling.
29
34
30
35
---
31
36
32
-
## 🔒 Private Repositories
37
+
## 🔒 Private Repository
33
38
34
39
Your Docker Hub repository should be set to **private**. Public repositories expose your solution to other participants.
35
40
@@ -53,7 +58,7 @@ Your Docker Hub repository should be set to **private**. Public repositories exp
53
58
54
59
## 🎫 Generating a Personal Access Token (PAT)
55
60
56
-
A PAT is a secure alternative to your Docker Hub password. It can be scoped to specific permissions and revoked at any time — much safer than sharing your account password.
61
+
A PAT is a secure alternative to your Docker Hub password. It can be scoped to specific permissions and revoked at any time.
57
62
58
63
### Step 1 — Sign in to Docker Hub
59
64
@@ -81,11 +86,11 @@ You can get there in two ways:
81
86
Your token will be shown **only once**. Copy it immediately and store it somewhere safe.
82
87
83
88
!!! danger "Don't lose your token!"
84
-
Docker Hub will **never** show this token value again. If you lose it, you'll need to revoke it and generate a new one. Store it in a password manager or an encrypted file.
89
+
Docker Hub will **never** show this token value again. If you lose it, you'll need to revoke it and generate a new one.
85
90
86
91
### Step 5 — Verify it works
87
92
88
-
Before plugging the PAT into your miner config, quickly verify it from your terminal:
93
+
Before using the PAT in your miner, quickly verify it from your terminal:
89
94
90
95
```bash
91
96
docker login -u <your-username>
@@ -98,30 +103,28 @@ Login Succeeded
98
103
```
99
104
100
105
??? example "One-liner for scripts"
101
-
If you prefer a non-interactive login (useful in CI/CD or automation scripts):
Add `.env` to your `.gitignore` if you use a dotenv file.
126
+
!!! danger "Never commit your PAT"
127
+
Make sure `personal_access_token.txt` is not tracked by Git. If you accidentally expose a PAT, revoke it immediately from the [security settings page](https://hub.docker.com/settings/security) and generate a new one.
125
128
126
129
---
127
130
@@ -136,26 +139,24 @@ You can manage all your tokens from the [security settings page](https://hub.doc
136
139
| **Regenerate** | You want a new value but keep the same name and permissions |
137
140
| **Create new** | You need a separate token for a different purpose |
138
141
139
-
You can have multiple tokens, but only **one** should be used for your miner configuration.
140
-
141
142
---
142
143
143
144
## ❓ Troubleshooting
144
145
145
146
??? question "Authentication failed during image pull"
146
-
- Double-check that the PAT is correct and hasn't been revoked.
147
+
- Double-check that the PAT in `personal_access_token.txt` is correct and hasn't been revoked.
147
148
- Make sure you're using the PAT, not your Docker Hub password.
148
149
- Verify the token hasn't expired — check the [security settings page](https://hub.docker.com/settings/security).
149
150
150
151
??? question "Repository not found"
151
-
- Confirm the image name matches exactly: `<username>/<repo>:<tag>`.
152
+
- Confirm the image reference in `active_commit.yaml` matches exactly: `<username>/<repo>@sha256:<hash>`.
152
153
- Ensure the PAT belongs to the same account that owns the repository.
153
154
- Check that the repository actually exists on Docker Hub.
154
155
155
-
??? question "Multiple username errors in `active_commit`"
156
-
- All images in your `active_commit` must use the **same** Docker Hub username.
156
+
??? question "Multiple username errors in `active_commit.yaml`"
157
+
- All entries in your `active_commit.yaml` must use the **same** Docker Hub username.
157
158
- If you need images from different sources, push them all under one account first.
158
159
159
160
??? question "My images are publicly visible"
160
-
- Go to each repository's **Settings** → **Visibility** → switch to **Private**.
161
+
- Go to your repository's **Settings** → **Visibility** → switch to **Private**.
161
162
- Set your default visibility to private to prevent this in the future (see the tip above).
Add `.env` to your `.gitignore`. If you accidentally expose a PAT, revoke it immediately from the [security settings page](https://hub.docker.com/settings/security) and generate a new one.
97
+
Make sure `personal_access_token.txt` is not tracked by Git. If you accidentally expose a PAT, revoke it immediately from the [security settings page](https://hub.docker.com/settings/security) and generate a new one.
0 commit comments