RousselTMLEARNING

TP · Docker: From Discovery to Expertise

Creating My First Container

Prerequisites #

You must have a machine with Docker installed.

Deployment #

In this section, we will deploy our first Docker container.

  1. Find and Download the Image

    We will deploy an Apache web server version 2.4.62. We therefore need to find a ready-to-use image and download it to our Apache web server.

  2. Deploy the Container

    You need to deploy our first container with the following characteristics:
    • Image: apache version 2.4.62
    • Port exposure: 83
    • Container name: mon-premier-conteneur
  3. Check Container Status

    You must check that your container is functioning properly. To do this, provide the docker commands for the following actions:
    • Show running containers
    • Show running and stopped containers
    • Show only the mon-premier-conteneur container
    • Show containers that have the Label AUTOR:ROUSSELTM
  4. Container Verification

    You must find the command to test the proper functioning of the web server container.
    WARNING: A running container is not necessarily a functioning container. You must check its logs and outputs.

Optimization #

In this section, we will optimize our first Docker container.

  1. Build a second, lighter container

    As mentioned during the courses, official images must be used in priority, especially the most optimal ones. You must choose another, more size-optimized image.

  2. Compare the disk usage of the two containers

    You must find a command that shows only the two containers with their disk usage, knowing that both image names contain 'mon-'

Difficulty level : ●●○○○ (2/5)

My progress

  • ⏱ Estimated time : ≈ 42 min

🧪 Launch the lab environment ↗

Sign in to track your progress and take notes. Sign in

💬 Ask a question

Course Glossary

DevOps

A culture, movement, and set of practices designed to unify software development (Dev) and IT operations (Ops).

API Gateway

A gateway that acts as a single entry point for all requests to a microservices architecture. It handles routing, security, and rate limiting.

Architecture

The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.

Artifact

The final outcome of a software compilation or build process, such as a .jar file, a zip archive, or a Docker image, ready for deployment.

Repository

A centralized storage location. This can refer to a source code repository (e.g., Git) or an artifact and binary repository (e.g., Harbor, Nexus, Arti...

Docker

An open-source platform designed to make it easier to create, deploy, and run applications by isolating them into portable, lightweight software conta...

Recommended Articles

Traefik : vue d'ensemble, architecture et premier déploiement

Découvrir Traefik : reverse proxy et load balancer cloud-native, entrypoints, routers, services, ...

Traefik : les providers (Docker, Kubernetes, Nomad, Consul, fichiers, clés-valeurs)

Les providers alimentent la configuration dynamique de Traefik : découverte des services Docker, ...

CI/CD de bout en bout (3/5) : artefacts, registres et environnements

Livrer en continu : artefacts immuables et versionnés, registres d'images et de paquets, promotio...

Conteneurs, Kubernetes et cloud native dans une démarche DevOps

Le rôle des conteneurs et de Kubernetes dans le DevOps : images reproductibles, Dockerfile multi-...

CNI Kubernetes : Flannel, Calico et Cilium comparés

Kubernetes CNI : comprendre les plugins réseau (Container Network Interface) et comparer Flannel,...

Installer Grafana Tempo (Docker Compose, binaire et Helm)

Installer Grafana Tempo : configuration tempo.yaml, Docker Compose avec Grafana et Prometheus, po...

Installer Grafana Loki (Docker Compose, binaire et Helm)

Installer et valider Grafana Loki : configuration minimale, Docker Compose avec Grafana et Alloy,...

Installer Bindplane : serveur, BDOT Collector et connexion OpAMP

Installer le serveur Bindplane (Docker Compose, Linux, Kubernetes), connecter des collecteurs BDO...

Installer Zabbix et superviser son premier hôte

Installer Zabbix avec Docker Compose (serveur, PostgreSQL, interface web), installer l'agent 2 su...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!