i try to run multiple services with the command docker compose but Don’t work :
Why is the topic in the Image builds category? Do you have a problem with building images or running containers?
The error message says the manifest is unknown. There is no image with that name on Docker Hub
https://hub.docker.com/u/mouhib226
Why do you think that should work?
One thing is sure. Your error has nothing to do with running multiple services.
i tried to run account separatly with buildpacks ad rerun again the command docker compose up i got the same error msg except account
Please, use </>
button to share codes, terminal outputs, error messages instead of sharing screenshots. That helps others to search for similar issues and us to read it more easily and quote parts of the message so we can help you more quickly. You can find a complete guide in the following post: How to format your forum posts
You still haven’t responded to my questions.
If there is no image with that name, why should it work? I don’t see how you build the image.
build image i think it should work because in tutorial it’s work
Then why do you think we should know what you do if you only share “it should work”. I have no idea what tutorial you follow, but the fact is nothing you shared indicates you built an image. You are just using an image tag which doesn’t exist on Docker Hub. Why should it exist locally? how do you build it. Share all the information that can help someone to reproduce the issue.
services:
accounts:
image: "mouhib226/accounts:v1"
container_name: accounts_MS
ports:
- "8080:8080"
deploy:
resources:
limits:
memory: 700m
networks:
- msLearn
loans:
image: "mouhib226/loans:v1"
container_name: loans_MS
ports:
- "8090:8090"
deploy:
resources:
limits:
memory: 700m
networks:
- msLearn
cards:
image: "mouhib226/cards:v1"
container_name: cards_MS
ports:
- "9000:9000"
deploy:
resources:
limits:
memory: 700m
networks:
- msLearn
networks:
msLearn:
driver: bridge
this is docker file, i want to build all microservices containers by docker compose.
But nothing in your compose file instructs to build images…
How do you generate the images?
in the tutorial he explain how containerise microservices with docker file , buildpacks,ad googlejib after he delete all the images ad create the docker file like i mention ad run the command docker compose up all the microservices are up.
Then either his tutorial is incomplete, or more likely you forget to apply a step.
Your compose file does not have a single build:
item.
But you only shared a compose file. That is not a Dockerfile. It could be the reason of the misunderstanding. You indeed need a Dockerfile, not a compose file. There is also a way to use an inline Dockerfile in the compose file, but you have nothing like that.
NOTE: I changed the title of the topic, since it is clearly not about running multiple services, but about building images
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.