📚 Wiki
› Immagini Docker — Registri e tag
Immagini Docker — Registri e tag
👤 di @kr0r1s
📅 27/10/2026
👁️ 15 visite
<h2>Docker registri e tag</h2>
<h3>Docker Hub (registro pubblico)</h3>
<pre><code">docker pull nginx # immagine ufficiale
docker pull nginx:1.25 # versione specifica
docker pull nginx:latest # ultima versione (default)
docker pull utente/myapp:1.0 # immagine utente</code></pre>
<h3>Tag e versioni</h3>
<pre><code">docker build -t myapp:1.0 .
docker tag myapp:1.0 myapp:latest
docker tag myapp:1.0 registry.esempio.com/myapp:1.0</code></pre>
<h3>Registro privato locale</h3>
<pre><code">docker run -d -p 5000:5000 --name registry registry:2
docker tag myapp localhost:5000/myapp:latest
docker push localhost:5000/myapp:latest
docker pull localhost:5000/myapp:latest</code></pre>
<h3>Immagini base consigliate</h3>
<pre><code">debian:12-slim # Debian minimo
ubuntu:22.04 # Ubuntu stabile
alpine:3.18 # minuscolo (5MB) — manca glibc
node:20-alpine # Node.js su Alpine
php:8.2-fpm-alpine
python:3.11-slim</code></pre>
<h3>Docker Hub (registro pubblico)</h3>
<pre><code">docker pull nginx # immagine ufficiale
docker pull nginx:1.25 # versione specifica
docker pull nginx:latest # ultima versione (default)
docker pull utente/myapp:1.0 # immagine utente</code></pre>
<h3>Tag e versioni</h3>
<pre><code">docker build -t myapp:1.0 .
docker tag myapp:1.0 myapp:latest
docker tag myapp:1.0 registry.esempio.com/myapp:1.0</code></pre>
<h3>Registro privato locale</h3>
<pre><code">docker run -d -p 5000:5000 --name registry registry:2
docker tag myapp localhost:5000/myapp:latest
docker push localhost:5000/myapp:latest
docker pull localhost:5000/myapp:latest</code></pre>
<h3>Immagini base consigliate</h3>
<pre><code">debian:12-slim # Debian minimo
ubuntu:22.04 # Ubuntu stabile
alpine:3.18 # minuscolo (5MB) — manca glibc
node:20-alpine # Node.js su Alpine
php:8.2-fpm-alpine
python:3.11-slim</code></pre>
📄 Info pagina
👤 Autore: @kr0r1s
📅 Creata: 16/04/2026
📅 Aggiornata: 27/10/2026
👁️ Visualizzazioni: 15
🔄 Revisioni: 1