Skip to content

Commit cb2914c

Browse files
committed
updating again, shouldn't go first (agree is confusing)
1 parent 2c21948 commit cb2914c

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

pages/docs/user-docs/docs-docker.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,15 @@ Password: [password]
142142
Again, this can be in addition to specification of a custom registry with the `Registry` parameter.
143143

144144
#### Authentication in the Environment
145-
You can export the registry, and authentication token in environmental variables as follows. (Optionally) first, if you want to test your token, you can obtain it using the command line (skip this step if you don't need or want to test). Here we do that and put it into an environmental variable, `CREDENTIAL`:
145+
You can export your registry, username, and password for Singularity as follows:
146+
147+
```bash
148+
export SINGULARITY_DOCKER_REGISTRY='--registry myrepo'
149+
export SINGULARITY_DOCKER_AUTH='--username vanessa --password [password]'
150+
```
151+
152+
##### Testing Authentication
153+
If you are having trouble, you can test your token by obtaining it on the command line and putting it into an environmental variable, `CREDENTIAL`:
146154

147155

148156
```bash
@@ -156,12 +164,7 @@ This should place the token in the environmental variable `TOKEN`. To test that
156164
http https://index.docker.io/v2/vanessa/code-samples/tags/list Authorization:"Bearer $TOKEN"
157165
```
158166

159-
Once you have confirmed, then you can export the variables for Singularity as follows:
160-
161-
```bash
162-
export SINGULARITY_DOCKER_REGISTRY='--registry myrepo'
163-
export SINGULARITY_DOCKER_AUTH='--username vanessa --password [password]'
164-
```
167+
The above call should return the tags list as expected.
165168

166169

167170
### Run a Singularity Shell from a Docker image

0 commit comments

Comments
 (0)