I use command: docker run --rm -it govim bash -l to run docker images but it does not display color output. If I source ~/.bash_profile or run
docker run --rm -it govim bash -l
source ~/.bash_profile
Adding -t is working for me:
docker exec -t vendor/bin/phpunit