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
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,7 @@ More detailed instructions are in the [`example README.md`](https://github.com/R
111
111
|**cap_add**|[]string | no | Add individual capabilities. |
112
112
|**cap_drop**|[]string | no | Drop invidual capabilities. |
113
113
|**devices**|[]string | no | A list of devices to be exposed to the container. |
114
+
|**auth**| block | no | Provide authentication for a private registry. See [Auth](#auth) for more details. |
114
115
|**mounts**|[]block | no | A list of mounts to be mounted in the container. Volume, bind and tmpfs type mounts are supported. fstab style [`mount options`](https://github.com/containerd/containerd/blob/master/mount/mount_linux.go#L211-L235) are supported. |
115
116
116
117
**Mount block**<br/>
@@ -162,6 +163,21 @@ config {
162
163
}
163
164
```
164
165
166
+
### auth
167
+
168
+
If you want to pull from a private repository e.g. docker hub, you can specify `username` and `password` in the `auth` stanza. See example below.
169
+
170
+
**NOTE**: In the below example, `user` and `pass` are just placeholder values which need to be replaced by actual `username` and `password`, when specifying the credentials.
171
+
172
+
```
173
+
config {
174
+
auth {
175
+
username = "user"
176
+
password = "pass"
177
+
}
178
+
}
179
+
```
180
+
165
181
## Networking
166
182
167
183
`nomad-driver-containerd` supports **host** and **bridge** networks.<br/>
0 commit comments