The installation steps below assumes you are using a Linux distribution. If you are using Windows or macOS, you may need to use Docker Desktop to run Docker Engine in a virtual machine.
Although the GUI provided by Docker Desktop may be more user-friendly than CLI, this guide does not cover the use of Docker Desktop, as it does not support certain advanced features. Feel free to try out Docker Desktop first, and then come back to this guide later when you are ready to use the CLI.
Docker Desktop is a tool that includes a virtual machine (VM), a graphical user interface (GUI), and extra features, with the Docker engine running inside the VM. See this post for more info.
docker-ce vs. docker.io
For normal users, I recommend installing docker-ce for simplicity, as docker.io might not be the latest version in distributions that have reached the end of their life (EOL). However, if you are experienced and know what you are doing, using docker.io is also feasible. For more info, see this post.
docker-compose-plugin vs. docker-compose
Use docker-compose-plugin (Compose V2, with docker compose command) instead of docker-compose (Compose V1, with docker-compose command) since it is deprecated. See this post for more info.