Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Hacking & PentestingMy 5 favorite Siri AI ‘onscreen awareness’ tricks – and why(22.09.2026 um 15:06 Uhr)
Apple iOS & macOSDowngrade von iOS 27 auf iOS 26 nicht mehr möglich(22.09.2026 um 14:30 Uhr)
Apple iOS & macOSOnyX und Deeper: Neue Versionen für macOS Golden Gate 27(22.09.2026 um 15:59 Uhr)
Hacking & PentestingMy 5 favorite Siri AI ‘onscreen awareness’ tricks – and why(22.09.2026 um 15:06 Uhr)
Apple iOS & macOSDowngrade von iOS 27 auf iOS 26 nicht mehr möglich(22.09.2026 um 14:30 Uhr)
Apple iOS & macOSOnyX und Deeper: Neue Versionen für macOS Golden Gate 27(22.09.2026 um 15:59 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

🛥️ Introduction to Docker: Core Concepts and Basics for Beginners

Docker is like a magic toolbox for developers. It lets them build, ship, and manage their apps in tiny, portable boxes called containers. Containers are like virtual rooms, but they are way faster and more efficient than traditional…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Docker is like a magic toolbox for developers. It lets them build, ship, and manage their apps in tiny, portable boxes called containers. Containers are like virtual rooms, but they are way faster and more efficient than traditional virtual machines (VMs). Thanks to Docker, containers have become super popular, and they’re now a must-have part of modern software development.









What is Docker?



Docker Container



Docker is an open-source platform that automates the deployment of applications inside containers. Containers are isolated environments that contain everything needed to run an application, including the code, runtime, libraries, and system tools. Docker provides developers with tools to build, manage, and distribute these containers.






OCI






What is the Open Container Initiative (OCI)?



The Open Container Initiative (OCI) is an open governance structure established in 2015 by the Linux Foundation. It aims to create industry standards for container runtime and image specifications, ensuring interoperability across container ecosystems.



Docker originally developed its own container runtime and image formats. However, the rise of containers and the need for broader standardization led Docker to contribute its container runtime technology, runc, to the OCI. Today, Docker’s ecosystem adheres to OCI standards, making Docker containers compatible with other OCI-compliant runtimes and tools.



By aligning with OCI standards, Docker ensures that its containers and images can run across various platforms and tools, fostering a more open and collaborative container ecosystem.









Why are Containers Useful?





  1. Portability: Containers can run on any system that supports OCI-compliant runtimes, ensuring that applications behave consistently across environments.


  2. Efficiency: Containers share the host system's kernel, making them lightweight and fast to start compared to VMs.


  3. Scalability: Containers can be easily scaled up or down to handle varying loads.


  4. Consistency: Containers reduce the "it works on my machine" problem by encapsulating all dependencies and configurations.









Containers vs. Virtual Machines vs. Bare Metal



Container vs VMs vs Bare Metal



Bare Metal:




  • Runs directly on physical hardware without any virtualization.

  • Offers maximum performance and direct access to hardware resources.

  • Best suited for high-performance workloads and applications that require complete control over hardware.



Bare Metal



Virtual Machines (VMs):




  • Include a full OS, making them heavier.

  • Require more resources and take longer to start.

  • Suitable for running multiple OS environments on a single physical machine.



Virtual Machines (VMs)



Containers:




  • Share the host OS kernel, making them lightweight.

  • Use less memory and start quickly.

  • Ideal for microservices and rapid deployments.



Container


















































Aspect Containers Virtual Machines Bare Metal
Resource Efficiency High Moderate Highest
Startup Time Seconds Minutes N/A
*Isolation *
Process-level Full OS-level Complete physical isolation
Portability Very High Moderate Low
Performance Near-native Moderate Native
*Use Cases *
Microservices, CI/CD pipelines Legacy applications, OS testing High-performance computing








Docker Terminology



Docker Terminology





  • Dockerfile: A text file with instructions for building a Docker image.


  • Image: A read-only template used to create containers. Images are built from a Dockerfile and follow OCI image specifications.


  • Container: A runnable instance of an image. Containers can be started, stopped, and deleted.


  • Registry: A repository for Docker images. Docker Hub is a popular public registry, and other OCI-compliant registries include Harbor and Quay.









Docker Command Line Cheat Sheet



Docker Command Line Cheat Sheet






0. Basic Docker Commands





  • docker --version: Check Docker version.


  • docker help: Show Docker commands and options.


  • docker info: Display system-wide information about Docker.






1. Images





  • docker images: List all local images.


  • docker pull <image>: Download an image from Docker Hub.


  • docker build -t <image_name> .: Build an image from a Dockerfile in the current directory.


  • docker rmi <image>: Remove an image.


  • docker tag <source_image> <new_image>: Tag an image with a new name.






2. Containers





  • docker run <image>: Run a container from an image.


  • docker run -it <image>: Run a container in interactive mode.


  • docker run -d <image>: Run a container in detached mode.


  • docker ps: List running containers.


  • docker ps -a: List all containers (including stopped ones).


  • docker stop <container>: Stop a running container.


  • docker start <container>: Start a stopped container.


  • docker restart <container>: Restart a container.


  • docker rm <container>: Remove a stopped container.


  • docker exec -it <container> <command>: Run a command inside a running container.






3. Container Management





  • docker logs <container>: View logs of a container.


  • docker top <container>: Display the processes running in a container.


  • docker stats <container>: Display a live stream of resource usage statistics.


  • docker inspect <container>: View details about a container or image.


  • docker rename <old_name> <new_name>: Rename a container.






4. Networking





  • docker network ls: List all Docker networks.


  • docker network create <network_name>: Create a new network.


  • docker network connect <network> <container>: Connect a container to a network.


  • docker network disconnect <network> <container>: Disconnect a container from a network.


  • docker network inspect <network>: View details about a network.






5. Volumes





  • docker volume ls: List all volumes.


  • docker volume create <volume_name>: Create a volume.


  • docker volume inspect <volume>: Display detailed information about a volume.


  • docker volume rm <volume>: Remove a volume.









Example: Creating a Simple Docker Container



Let's create a simple Docker container that runs a Python script.





  1. Create a Python Script: Save the following code in a file named app.py:




   print("Hello, Docker!")








  1. Create a Dockerfile: Create a file named Dockerfile with the following content:




   FROM python:3.9-slim
COPY app.py /app.py
CMD ["python", "/app.py"]








  1. Build the Docker Image:




   docker build -t python-app .








  1. Run the Docker Container:




   docker run python-app






This will output:




   Hello, Docker!












Conclusion



Docker makes building, deploying, and running apps using containers is a breeze. By following the OCI standards, Docker ensures everything works together seamlessly in the container world. Containers are super efficient, portable, and scalable, which is why they’re at the heart of modern software development. If you know Docker and how it works with OCI, you can use this tech to speed up your workflows and ensure your apps work on any platform.



Next week I will dive into the docker architecture, so stay tune.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 🛥️ Introduction to Docker: Core Concepts and Basics for Beginners

Thematisch verwandte Begriffe: Introduction, Docker, Core, Concepts · 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 ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-95667 | The MISP installer scripts (for Debian 12, Debian 13, Ubuntu 24.04, and …
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick