got the folowing error :invalid reference format when running tests in docker

-I tied to run the following docker command, which should trigger TestNG XML suite (maven)
-image found in aws ecr.

docker run -t -v $(WORKSPACE)/reports:/target/surefire-reports/html 178595328311.east1.amazonaws.com:automation/$(MODULE_NAME)$(MY_BRANCH):latest -DxmlRunner=${TEST_COMPONENT}.xml

error message :docker invalid reference format.

Source: Docker Questions