🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 5 Min Lesezeit
0

Day 4: Your first Container

↗ Quelle (dev.to)
🗣️ Stimme:

This is a crosspost from . This might take a while if you don't have it yet! Subsequent runs will be faster because Docker is quite good at caching steps that do not change.



If the build was successful, you should be able to see it when you list all images with docker images.




CODE
$ docker images
REPOSITORY TAG IMAGE ID CREATED
hello-world-go latest <image-id> <timestamp>






If you don't see the image, please let me know and I will help you out :)



Great job! You just built your first docker image! 🎉



Now that we have our image, we can run it with the docker run command.




CODE
$ docker run hello-world-go
Hello, World!






This will start a new container from our image and execute the main executable, because that is what we defined with the CMD instruction in our Dockerfile.



As you can see, the container exits immediately because that is what our application does.



If you run docker ps --all, you should see that the container exited immediately.




CODE
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
<container-id> hello-world-go "/main" <timestamp> Exited (0)






Make sure to run docker ps --all and not docker ps because docker ps only shows running containers by default. The --all flag is used to show all containers, including the ones that have already exited.



Now its your turn to play around with this small setup! Change some lines in the Dockerfile and see what happens. Here are some ideas:




  • Change the CMD instruction to RUN go run main.go and see what happens. Does it still work? Why?

  • Change the RUN instruction to RUN go build -o main main.go, why does it fail?

  • Add a new COPY instruction to copy some other files into the image, does it work?

  • Checkout the WORKDIR instruction and try to use it in your Dockerfile.



If you get stuck, feel free to ask me for help! You can reach me on or by email



Anyway, that's it for today. Tomorrow we will take a deeper look at what exactly happend when we built our image and learn some more ways to interact with containers. If you want to have a headstart, checkout the docker exec command and what you can do with it!



Until then, happy hacking! 🚀



Jonas

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
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Day 4: Your first Container

Thematisch verwandte Begriffe: Your, first, Container · 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 ...