Setting up Docker and Docker Compose on Linux Mint
Published:
The following setup is for Linux Mint 21.1
Installation steps
- Setup the Docker’s apt repository
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
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
- Navigate as root to
etc/apt/sources.list.d
, and editdocker.list
file. - Replace
vera
withjammy
. Save and exit the file. - Do an update
sudo apt-get update
- Install docker packages
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- Verify for correct installation
sudo docker run hello-world
- Download the latest version of deb, and run
sudo apt-get install ./docker-desktop-4.28.0-amd64.deb
- Launch Docker desktop from applications and check whether docker is running.
References: