https://hub.docker.com/r/skilldlabs/docker-phpcs-drupal/
Go to needed directory with code
cd /path/to/check
By default we call phpcs from container
docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal
To call phpcbf you need to override default command
docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal phpcbf --standard=Drupal .
To call DrupalSecure check (https://www.drupal.org/sandbox/coltrane/1921926)
docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal phpcs --standard=DrupalSecure .
docker tag skilldlabs/docker-phpcs-drupal phpcs
then you can use docker run --rm -v $(pwd):/work phpcs