diff --git a/src/public/search.html b/src/public/search.html index 957f792..da5fc98 100644 --- a/src/public/search.html +++ b/src/public/search.html @@ -1353,6 +1353,7 @@ } function renderTagsBatch(tags, fullRepoName, container, replaceContent = false) { + const proxyDomain = window.location.host; const tagsHtml = tags.map(tag => { const vulnIndicators = Object.entries(tag.vulnerabilities || {}) .map(([level, count]) => count > 0 ? `` : '') @@ -1364,6 +1365,8 @@ const size = formatUtils.formatSize(img.size); return `
${arch}
`; }).join(''); + + const proxyCommand = `docker pull ${proxyDomain}/${fullRepoName}:${tag.name} && docker tag ${proxyDomain}/${fullRepoName}:${tag.name} ${fullRepoName}:${tag.name} && docker rmi ${proxyDomain}/${fullRepoName}:${tag.name}`; return `
@@ -1380,6 +1383,10 @@ docker pull ${fullRepoName}:${tag.name}
+
+ ${proxyCommand} + +
${architectures ? `
${architectures}
` : ''} `; @@ -1488,4 +1495,4 @@ - \ No newline at end of file +