We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9ce8fe + 4d07d3e commit 14f2b67Copy full SHA for 14f2b67
changelog/DOrI5ptoQYG7I2dsMK_ndA.md
@@ -0,0 +1,3 @@
1
+audience: developers
2
+level: silent
3
+---
infrastructure/tooling/src/utils/docker.js
@@ -227,7 +227,7 @@ exports.dockerRegistryCheck = async ({ tag }) => {
227
const [repo, imagetag] = tag.split(/:/);
228
try {
229
// Access the registry API directly to see if this tag already exists, and do not push if so.
230
- const res = await got(`https://index.docker.io/v1/repositories/${repo}/tags`, { json: true });
+ const res = await got(`https://index.docker.io/v1/repositories/${repo}/tags`, { responseType: 'json' });
231
if (!res.body) {
232
throw new Error('invalid response from index.docker.io');
233
}
0 commit comments