You need to install docker and docker-compose.
Rename the .env.example file to .env and run
$ cd minecraft-server
$ docker-compose up -d
I took the image from here itzg/minecraft-server, in the same place all the docs. This repository is just an example using a minecraft server image.