You should install docker and docker compose before using this repo to setup Magento2 environment.
Install full magento2 environment including magento2 pre-installed with sample data using only one command line:
docker-compose up
Magento application is accessible on : local.magento2
1- create 3 docker containers : nginx , php-fpm (xdebug included) and mariadb.
2- fetch magento2 from official repo.
3- install magento2.
4- install sample-data.
5- set files owner + permissions.