31 lines
829 B
Plaintext
31 lines
829 B
Plaintext
🚀Crear la imagen y comprimirla para exportar
|
|
docker build -t mi-imagen .
|
|
|
|
💾 2️⃣ Guardar la imagen como archivo
|
|
docker save mi-imagen:latest -o mi-imagen.tar
|
|
gzip mi-imagen.tar
|
|
|
|
Pasar el archivo al servidor
|
|
|
|
✅ Descomprimir y cargar la imagen en el servidor
|
|
gunzip -c /tmp/mi-imagen.tar.gz | docker load
|
|
|
|
🌟BONUS: copiar también imágenes base (node:22-bookworm)
|
|
========================================================
|
|
docker pull node:22-bookworm
|
|
docker save node:22-bookworm -o node-22-bookworm.tar
|
|
Después las transfieres y cargas en el VPS igual que tu propia imagen.
|
|
|
|
|
|
|
|
COMANDOS PARA OMV
|
|
=================
|
|
docker stop turnosxpress
|
|
docker rm turnosxpress
|
|
docker rmi turnosxpress:latest
|
|
clear
|
|
docker build -t turnosxpress .
|
|
docker save turnosxpress:latest -o turnosxpress.tar
|
|
ls
|
|
gzip turnosxpress.tar
|
|
ls -la |