Premiers Pas
🔍 Les Essentiels de Docker
1
docker run hello-world
docker run hello-worldUnable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world c1ec31eb5944: Pull complete Digest: sha256:d211f485f2dd1dee407a80973c8f129f00d54604d2c90732e8e320e5038a0348 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ For more examples and ideas, visit: https://docs.docker.com/get-started/
2
3
4
docker container run
docker container run alpine ls -ltotal 56 drwxr-xr-x 2 root root 4096 Sep 6 11:34 bin drwxr-xr-x 5 root root 340 Nov 6 10:27 dev drwxr-xr-x 1 root root 4096 Nov 6 10:27 etc drwxr-xr-x 2 root root 4096 Sep 6 11:34 home drwxr-xr-x 6 root root 4096 Sep 6 11:34 lib drwxr-xr-x 5 root root 4096 Sep 6 11:34 media drwxr-xr-x 2 root root 4096 Sep 6 11:34 mnt drwxr-xr-x 2 root root 4096 Sep 6 11:34 opt dr-xr-xr-x 289 root root 0 Nov 6 10:27 proc drwx------ 2 root root 4096 Sep 6 11:34 root drwxr-xr-x 2 root root 4096 Sep 6 11:34 run drwxr-xr-x 2 root root 4096 Sep 6 11:34 sbin drwxr-xr-x 2 root root 4096 Sep 6 11:34 srv dr-xr-xr-x 13 root root 0 Nov 6 10:27 sys drwxrwxrwt 2 root root 4096 Sep 6 11:34 tmp drwxr-xr-x 7 root root 4096 Sep 6 11:34 usr drwxr-xr-x 12 root root 4096 Sep 6 11:34 var
🗂️ Description des répertoires
📦 Gestion des Conteneurs Docker
1
5
Nettoyer le système Docker
docker system pruneWARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling images - unused build cache Are you sure you want to continue? [y/N] y Deleted Containers: 705047281d58549bafdce54aa26bff3172a091eaa9db2a047858af98eb737529 2d10505a0e998877814e12340c936c7d88c6002025ff86600193233f068015eb 8b7073d2f0ffd525a1157aae4844e072acbe86f022238262c2837186e8bf2664 28b2bd50fd5c1d0f1965324356df03fbcaab18f1fe83d943e5bf2b143c315098 349d98fcdeb2d220da1a3491f1fb6c7c0f31840b81a58c71b99ce179ca800058 e86891ebaae3bde6661646e89c704ff87478bbf5a9ad0dab7e8b60efd5f8e54b b970c51940d1be2574761399910775271781dc5d75490fb8f76c4b955807dd3b 459736c5b03f858a5ee3a5defdbdf659d8b6a7cc3557c231dfd4ce5a1caff5e5 94a1303177b1a2eaa65f4e17cd32540d85f8b1802e392af6263dd013d65031ba a8d99b4b89c226aeb0b1ecd31def23de562a61aa218dbcf4930e82cf7b37543c Total reclaimed space: 142B
🌍 Déploiement d’un Serveur Web avec Nginx
⚙️ Terminologie Docker
🖼️ Images
docker image inspect <image_name>📦 Conteneurs
🛠️ Docker Daemon
📋 Client Docker
🏪 Docker Hub
Last updated