Docker

Установка в Ubuntu 20

sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" apt-cache policy docker-ce sudo apt install docker-ce

sudo systemctl status docker

Использование команды docker без sudo

sudo usermod -aG docker $USER

Базовые команды

docker pull alpine docker images docker run -it alpine docker ps -a docker ps -l # latest docker stop container_name