installazione Docker in Ubuntu 20.04
Il seguente tutorial descrive come installare e finestra mobile finestra mobile-composizione Ubuntu 20.04.
Realizzato con pochi passaggi.
Per un inizio installeremo Docker farà questo con il comando:
1 | sudo apt install docker.io |
Quindi aggiungere il servizio al sistema:
1 | sudo systemctl enable --now docker |
Il sudo comando senza uno scaricatore di porto
Docker gestione predefinito richiede privilegi di amministratore.
Per eseguire il comando finestra mobile come un utente diverso sudo radice senza preparazione, è necessario aggiungere un utente a un gruppo.
1 | sudo usermod -aG docker nasz_użytkownik |
Docker controlliamo la versione digitando:
1 | docker --version |
Prova di funzionamento, possiamo fare il contenitore con il comando:
1 | docker run hello-world |
Un intero dovrebbe funzionare correttamente
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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/ |
Installazione finestra mobile-composizione
Facciamo comando install:
1 | apt install docker-compose |
Controlliamo il comando Versione:
1 | docker-compose version |
1 2 3 4 | docker-compose version 1.21.0, build unknown docker-py version: 3.4.1 CPython version: 3.7.5 OpenSSL version: OpenSSL 1.1.1c 28 May 2019 |