Docker Community Forums

Share and learn in the Docker community.

Docker compose up invalid reference format

I’m using docker desktop on windows 10.

I’ve setup an AWS context which I have deployed a simple container to ecs fargate. I have tried the same on another more complex deployment and I get the error ‘invalid reference formar’. If I run it under the default context (locally) it works ok.

$ docker compose up
invalid reference format

Under the local context I can run ‘docker-compose up’ and everything starts ok.

Any ideas?

Can’t say for sure but I had this issue when trying to run a compose file that built from a local dockerfile instead of an image. I build that image, pushed it to dockerhub, then referenced that image in the compose file and it ran. Error could definitely be more descriptive.