Install Docker and Docker Compose

Official installation instrutions are here.

If you are using NixOS, just add

virtualisation.docker.enable = true;

to your system configuration and rebuild.