v1.0
This commit is contained in:
parent
95736db316
commit
9ad6f8ae43
11
README.md
11
README.md
@ -26,16 +26,7 @@ docker login registry-docker.gmolab.net:5000
|
|||||||
docker push registry-docker.gmolab.net:5000/ubuntu
|
docker push registry-docker.gmolab.net:5000/ubuntu
|
||||||
```
|
```
|
||||||
### Delete
|
### Delete
|
||||||
```bash
|
ToDo
|
||||||
|
|
||||||
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:<password>" -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
|
|
||||||
```
|
|
||||||
|
|
||||||
## Set registry in Portainer
|
## Set registry in Portainer
|
||||||
* on portainer goto on **Registries** menu and click on **+ Add registry**
|
* on portainer goto on **Registries** menu and click on **+ Add registry**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user