ustanovka_docker
Содержание
Установка Docker
Вариант 1
Вариант 2
- При необходимости добавляем ключ:
wget -qO- https://get.docker.com/gpg | sudo apt-key add -
- Загружаем скрипт установки с оф. сайта:
wget -qO- https://get.docker.com/ | sh
- Проверяем корректность установки:
docker run 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 "hello-world" image from the Docker Hub. (Assuming it was not already locally available.) 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 For more examples and ideas, visit: http://docs.docker.com/userguide/
Примечание. Если во время проверки вернётся сообщение об ошибке:
Post http:///var/run/docker.sock/v1.19/containers/create: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?
то необходимо добавить пользователя в группу « docker »:
sudo usermod -aG docker "username"
ustanovka_docker.txt · Последнее изменение: 2020/07/03 01:13 — daniil