Outils pour utilisateurs

Outils du site


tech:notes_depot_docker_-_docker_registry

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_depot_docker_-_docker_registry [2025/09/30 22:04] Jean-Baptistetech:notes_depot_docker_-_docker_registry [2025/11/11 19:25] (Version actuelle) Jean-Baptiste
Ligne 2: Ligne 2:
  
 = Notes Dépôt Docker - Docker Registry = Notes Dépôt Docker - Docker Registry
 +
 +Voir :
 +* [[Scan de vulnérabilité pour les images de conteneurs]]
  
 == Registry (comme JFrog Artifactory) == Registry (comme JFrog Artifactory)
Ligne 8: Ligne 11:
 * Gitlab registry * Gitlab registry
 * [[http://port.us.org/|Portus]] * [[http://port.us.org/|Portus]]
 +
  
  
Ligne 28: Ligne 32:
  
 ** Brouillon, insecure registry** ** Brouillon, insecure registry**
 +
  
 === Client === Client
  
-<code ini /etc/systemd/system/docker.service.d/http-proxy.conf>+Voir : 
 +  * ''/etc/containers/registries.conf'' et ''~/.config/containers/registries.conf'' 
 +  * https://docs.podman.io/en/v2.2.1/markdown/podman-search.1.html 
 + 
 +''/etc/systemd/system/docker.service.d/http-proxy.conf'' 
 +<code ini>
 [Service] [Service]
-Environment="HTTP_PROXY=http://192.168.56.1:3128/" "HTTPS_PROXY=http://192.168.56.1:3128/" "NO_PROXY=localhost,127.0.0.0/8,192.168.0.0/16,registry.local"+Environment="HTTP_PROXY=http://192.168.56.1:3128/" "HTTPS_PROXY=http://192.168.56.1:3128/" "NO_PROXY=localhost,127.0.0.0/8,192.168.0.0/16,registry.local" 
 +Environment="http_proxy=http://192.168.56.1:3128/" "https_proxy=http://192.168.56.1:3128/" "NO_PROXY=localhost,127.0.0.0/8,192.168.0.0/16,registry.local"
 </code> </code>
  
Ligne 46: Ligne 57:
 </code> </code>
  
-<code - /etc/hosts>+''/etc/hosts'' 
 +<code ->
 192.168.205.18 docker-1 192.168.205.18 docker-1
 </code> </code>
Ligne 55: Ligne 67:
 curl -X GET -u <user>:<pass> https://myregistry:5000/v2/ubuntu/tags/list curl -X GET -u <user>:<pass> https://myregistry:5000/v2/ubuntu/tags/list
 </code> </code>
 +
  
 ==== SSL/TLS ==== SSL/TLS
Ligne 66: Ligne 79:
 Autre solution  Autre solution 
  
-<code javascript /etc/docker/daemon.json>+''/etc/docker/daemon.json'' 
 +<code javascript>
 { {
     "log-level":        "error",     "log-level":        "error",
Ligne 81: Ligne 95:
 Ne semble plus marcher. \\ Ne semble plus marcher. \\
 Avant nous pouvions spécifier un numéro de port au registry Docker. Avant nous pouvions spécifier un numéro de port au registry Docker.
-<code javascript /etc/docker/daemon.json>+ 
 +''/etc/docker/daemon.json'' 
 +<code javascript>
 { {
           "insecure-registries" : ["docker-1:5000"]           "insecure-registries" : ["docker-1:5000"]
Ligne 104: Ligne 120:
  
  
-<code yaml docker-compose.yml>+''docker-compose.yml'' 
 +<code yaml>
 version: '3' version: '3'
 services: services:
Ligne 123: Ligne 140:
 </code> </code>
  
-<code yaml docker-compose.yml>+''docker-compose.yml'' 
 +<code yaml>
 version: '3' version: '3'
 services: services:
Ligne 161: Ligne 179:
 docker-compose up docker-compose up
 </code> </code>
 +
  
 == Utilisation == Utilisation
Ligne 257: Ligne 276:
   * ''podman search''   * ''podman search''
   * ''crane'' (asdf)   * ''crane'' (asdf)
 +  * skopeo
  
 https://blog.stephane-robert.info/docs/conteneurs/outils/crane/ https://blog.stephane-robert.info/docs/conteneurs/outils/crane/
 +
 +
 +~~~bash
 +skopeo inspect docker://tomsquest/docker-radicale | jq
 +~~~
 +
 +=== Pb 
 +
 +==== Error "server gave HTTP response to HTTPS client"
 +
 +<code bash>
 +podman exec -ti kind-control-plane /bin/bash
 +ctr -n k8s.io image pull --plain-http=true registry.test.svc.cluster.local:5000/awx-ee-gts-it:2.19.3-2-1
 +</code>
  
  
tech/notes_depot_docker_-_docker_registry.1759262644.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki