Docker Flake8 command is Giving ERROR: Job failed: exit code 1 on Runner

I am trying to run flake8 on python3.7 docker images , When I run on the docker image manually everything is working fine but When I am using gitlab-runner to run the flake8 on same docker image job is getting failed and giving

ERROR: Job failed: exit code 1

Help is appreciated!