Docker and drupal - 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'

If you are using docker and mysql and getting  something like 

1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'

its a good chance you are using mysql 8.0 in cointainer and drupal 8 at this point supports only 5.7
https://www.drupal.org/project/drupal/issues/2974398

so install mysql with tag that defines mysql version. 
This should do it.

 docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7