Q:

Run laravel environment in docker container

I'm new in docker and I need you help. I want to start laravel in docker container. Which the best way for this? I don't want installed locally Composer, Laravel installer, PHP, or something like this. After some short googling I have found this article: https://medium.com/@shakyShane/laravel-docker-part-1-setup-for-development-e3daaefaf3c Please look it. All look like pretty good, but this tips don't works. I have this error. I understand this error. It's look like as I try to start Composer with old version of php.  
Another guides suggest to have a lot of packages installed localy (Laravel installer, Composer and so on). 
So, this question is not about this error. This question is about, do you know some way for newbie that will be useful for understanding of this process. How you usually do it? Can you give me your short guide?

A:

The error you are getting kinda states your problem
your PHP version does not comply with your Laravel version.
in your PHP dockerfile you see this:
FROM php:7.0.4-fpm

change it to
FROM php:7.1.3-fpm

that should do the trick

