1 2 3 4 5 6 |
sudo apt install apt—transport—https ca—certificates curl software—properties—common sudo install —m 0755 —d /etc/apt/keyrings sudo curl —fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc echo «deb [arch=$(dpkg —print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo «$VERSION_CODENAME«) stable» | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt—get update |
Проверка установки:
1 2 3 4 |
sudo apt install docker—ce sudo docker run hello—world sudo docker container ls |
Добавить комментарий