In order to run containers like taltechivarlab/ubuntu-desktop on your machine, you will need to install Docker Engine.
Installation steps are already detailed well in the official guides, so here we will only provide links to those and a short TL;DR for each platform.
Guide: install Docker Desktop with WSL backend
- Install Windows Subsystem for Linux (WSL2)
- Download & install Docker Desktop for Windows
- Launch Docker Desktop
Guide: install Docker Desktop
- Download and install Docker Desktop for Mac
- Launch Docker Desktop
Guide: install Docker Engine
The commands differ depending on the Linux distribution, so if you want to install it manually, your best bet is checking the official guide for your distro. However, Docker provides a convenience installation script which works on most Linux distributions. With the script, installation steps become the following:
-
Download the installation script:
curl -fsSL https://get.docker.com -o get-docker.sh
-
Run the installation script:
⚠️ Before you install, it's a good practice to check if the contents of the downloadedget-docker.sh
match the ones of the original installation script from Docker's GitHub.sudo sh get-docker.sh
-
(optional) Add your user to the
docker
group.ℹ️ This will allow you to run
docker ...
commands without typingsudo
in front every time you use them.-
Add
docker
group to your system:sudo groupadd docker
💡 If you want to learn more about how group and user permissions work in Linux, we highly recommend watching this video tutorial by NetworkChuck.
-
Add your user to this group:
sudo usermod -aG docker $USER
-
Log out and back in for group changes to take effect.
-
To test your Docker installation, run the official hello-world container from your terminal:
docker run hello-world
ℹ️ If your Docker is running correctly, this command will result in a confirmation message with some additional info about how Docker got it done.