I created my project folder in Ubuntu at:
And put in this folder: Docker-based Drupal stack
.env files and then wrote the command in the terminal:
docker-compose up -d
started the necessary images for the local rise of the Drupal site.
I created index.php files with
phpinfo() function folder to test how everything works.
I wrote in the url
And File not found is displayed on my page page instead of the php version.
Source: Docker Questions