Commit 26c3f4d
committed
Fix createService not passing registry auth correctly
Dockerode's createService single-arg codepath does NOT extract
authconfig from the options object (unlike createImage and
service.update which do). Passing {…serviceSpec, authconfig}
resulted in the entire service spec being serialized as the
X-Registry-Auth header, which the registry cannot parse.
Use the two-argument form createService(auth, opts) so the auth
config is correctly sent as the X-Registry-Auth header.1 parent ff474b7 commit 26c3f4d
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
0 commit comments