🔧 AI Nachrichten Debian is Voting on Whether to Allow AI-Assisted Contributions(23.08.2026 um 09:34 Uhr)
🔧 AI Nachrichten The Linux Kernel Is Approaching 2,000 CVEs Per Release(29.08.2026 um 20:00 Uhr)
⚠️ Malware / Trojaner / VirenCitrix Adds a Linux-Powered Escape Hatch For Compromised Windows PCs(30.08.2026 um 17:34 Uhr)
🔧 AI Nachrichten Debian is Voting on Whether to Allow AI-Assisted Contributions(23.08.2026 um 09:34 Uhr)
🔧 AI Nachrichten The Linux Kernel Is Approaching 2,000 CVEs Per Release(29.08.2026 um 20:00 Uhr)
⚠️ Malware / Trojaner / VirenCitrix Adds a Linux-Powered Escape Hatch For Compromised Windows PCs(30.08.2026 um 17:34 Uhr)

🔧 Programmierung 🕛 vor 1 Jahr 2 Min Lesezeit
0

Transfer Docker Image from PC to Server

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




How to transfer Docker Image from your PC to your Server



This article is to help developers transfer docker images from their Pc to their Webserver without going through DockerHub.






Why?



To reduce DockerHub requests!






Example!



In this example, I'll be showing how to transfer from a Windows PC to a Ubuntu Linux Webserver.






Step 1 Open your project in the root directory



ex. cd /Users/sammy/projects/cars






Step 2 Build your image



docker build -t <dockerhubAccountname>/<imageName>:<version> .

ex. docker build -t sammy/cars:1.0 .

Do not forget the dot . for the current file.






Step 3 Save your Image as a compressed file.



docker save -o /Users/sammy/cars.tar sammy/cars:1.0






Step 4 Upload the compressed File to your Webserver.



I use Filezilla and upload the file to the root user directory.

or One can try rsync.

rsync -avz cars.tar [email protected]:/home/sammy/






Step 5 Ssh onto your Webserver



ssh [email protected] + password






Step 6 Load the image into Docker on the Webserver



sudo docker load -i cars.tar






Step 7 Check if the Image is loaded.



sudo docker images






Step 8 Run the image in a container



sudo docker run -d --name sammycars -p 8080:80 sammy/cars:1.0






Step 9 Check if the container is running.



sudo docker container la -a






NOTE !!



If you rinse and repeat first stop the current container and remove it.

sudo docker stop sammycars

sudo docker rm sammycars

Then remove the Image

sudo docker rmi sammy/cars:1.0






Footnote



I hope this was helpful and if already known, a cheatsheet then.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Debian is Voting on Whether to Allow AI-Assisted Contributions
1 Quelle
The Linux Kernel Is Approaching 2,000 CVEs Per Release
1 Quelle
Citrix Adds a Linux-Powered Escape Hatch For Compromised Windows PCs
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Transfer Docker Image from PC to Server

Thematisch verwandte Begriffe: Transfer, Docker, Image, from · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...