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
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,7 @@ More detailed instructions are in the [`example README.md`](https://github.com/R
87
87
|**containerd_runtime**| string | yes | N/A | Runtime for containerd e.g. `io.containerd.runc.v1` or `io.containerd.runc.v2`. |
88
88
|**stats_interval**| string | no | 1s | Interval for collecting `TaskStats`. |
89
89
|**allow_privileged**| bool | no | true | If set to `false`, driver will deny running privileged jobs. |
90
+
|**auth**| block | no | N/A | Provide authentication for a private registry. See [Authentication](#authentication-private-registry) for more details. |
90
91
91
92
**Task Config**
92
93
@@ -111,7 +112,7 @@ More detailed instructions are in the [`example README.md`](https://github.com/R
111
112
|**cap_add**|[]string | no | Add individual capabilities. |
112
113
|**cap_drop**|[]string | no | Drop invidual capabilities. |
113
114
|**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. |
115
+
|**auth**| block | no | Provide authentication for a private registry. See [Authentication](#authentication-private-registry) for more details. |
115
116
|**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. |
116
117
117
118
**Mount block**<br/>
@@ -163,18 +164,19 @@ config {
163
164
}
164
165
```
165
166
166
-
### auth
167
+
##Authentication (Private registry)
167
168
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
+
`auth` stanza allow you to set credentials for your private registry e.g. if you want to pull
170
+
an image from a private repository in docker hub.<br/>
171
+
`auth` stanza can be set either in `Driver Config` or `Task Config` or both.<br/>
172
+
If set at both places, `Task Config` auth will take precedence over `Driver Config` auth.
169
173
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.
174
+
**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. Below `auth` stanza can be used for both `Driver Config` and `Task Config`.
0 commit comments