From 9ad6f8ae43670ae370a58b79e42c6d2cd48ca3b3 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Sat, 16 Nov 2024 11:04:10 +0100 Subject: [PATCH] v1.0 --- README.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index aff1ac3..52b3a10 100644 --- a/README.md +++ b/README.md @@ -26,16 +26,7 @@ docker login registry-docker.gmolab.net:5000 docker push registry-docker.gmolab.net:5000/ubuntu ``` ### Delete -```bash - -manifest=$(curl -u "gilles:pa55w0rd" -sSL -I -H "Accept: application/vnd.docker.distribution.manifest.v2+json" https://registry-docker.gmolab.net:5000/v2/ubuntu/manifests/latest | awk '$1 == "docker-content-digest:" { print $2 }'| tr -d $'\r') - - -curl -v -u "[username]:[pw]" -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X HEAD https://[registry-ip]/v2/[image-name]/manifests/[image-version or tag number] -curl -v -u "gilles:" -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X HEAD https://registry-docker.gmolab.net:5000/v2/ubuntu/manifests/latest | egrep etag - -docker exec -it registry bin/registry garbage-collect /etc/docker/registry/config.yml -``` +ToDo ## Set registry in Portainer * on portainer goto on **Registries** menu and click on **+ Add registry**