[TP] Creating my first container
What you will learn in this TP :
Prerequisites
You must have a machine with Docker installed.Deployment
In this section, we will deploy our first Docker container.-
Find and download the image
We are going to deploy an Apache web server version 2.4.62. We must therefore find a ready-to-use image to download on our Apache web server. -
Deploy the container
You must deploy our first container with the following characteristics:- Image: apache version 2.4.62
- Port mapping: 83
- Container name: my-first-container
-
Container status check
You must verify the proper functioning of your container. To do this, you must provide the docker commands for the following actions:- List running containers
- List running and stopped containers
- List only the my-first-container container
- List containers that have the Label AUTOR:ROUSSELTM
-
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 working container. You must check its logs and outputs.
Optimization
In this section, we will optimize our first Docker container.-
Build a lighter second container
As indicated during the courses you should use official images in priority and especially the most optimal ones. You must choose another image more optimized in terms of size. -
Compare the disk consumption of the two containers
You must find a command that displays only the two containers with their disk usage knowing that the two images have names containing 'my-'
Course Glossary
A culture, movement, and set of practices designed to unify software development (Dev) and IT operations (Ops).
A gateway that acts as a single entry point for all requests to a microservices architecture. It handles routing, security, and rate limiting.
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
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.
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...
An open source IT automation tool (IaC) enabling configuration management, application deployment, and orchestration, operating agentlessly via SSH.