How to install docker and docker-compose on Linux mint 20 ?
Install Docker on Linux Mint 20.3
1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
2. Add Docker’s official GPG key (Add Docker Repository on Linux Mint)
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable | sudo tee /etc/apt/sources.list.d/docker.list
3. Update the apt package index
sudo apt-get update
4. Install Docker Engine, containerd, and Docker Compose.
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
You can test Docker Engine installation is successful using the hello-world image
sudo docker run hello-world
Install Docker on ubuntu
https://docs.docker.com/engine/install/ubuntu/
Comments