Ci-dessous, les différences entre deux révisions de la page.
— |
welcome:ubuntu:docker [2021/04/27 18:52] (Version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | <color # | ||
+ | Starting situation: server SSH and user " | ||
+ | < | ||
+ | # usermod -aG sudo arnaud</ | ||
+ | https:// | ||
+ | |||
+ | ====== Packages ====== | ||
+ | < | ||
+ | | ||
+ | | ||
+ | curl \ | ||
+ | gnupg \ | ||
+ | | ||
+ | |||
+ | $ curl -fsSL https:// | ||
+ | $ echo \ | ||
+ | " | ||
+ | | ||
+ | |||
+ | $ sudo apt-get update | ||
+ | $ sudo apt-get install docker-ce docker-ce-cli containerd.io | ||
+ | |||
+ | $ sudo systemctl enable --now docker</ | ||
+ | |||
+ | ====== Premier test ====== | ||
+ | < | ||
+ | Unable to find image ' | ||
+ | latest: Pulling from library/ | ||
+ | b8dfde127a29: | ||
+ | Digest: sha256: | ||
+ | Status: Downloaded newer image for hello-world: | ||
+ | |||
+ | 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 " | ||
+ | (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: | ||
+ | | ||
+ | |||
+ | For more examples and ideas, visit: | ||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | ====== Installation Docker Compose ====== | ||
+ | https:// | ||
+ | |||
+ | Regarder quelle version de " | ||
+ | < | ||
+ | $ sudo chmod +x / | ||
+ | $ docker-compose --version | ||
+ | docker-compose version 1.29.1, build c34c88b2</ |