G
G
gubber2017-02-09 18:36:44
Docker
gubber, 2017-02-09 18:36:44

How to run a multi-container Docker application locally?

I have built two docker images locally. Neither work normally and run separately.
f85f8b2e3ed94d1da77c5a725e699505.PNG
I want to run them in conjunction with each other. To do this, I created docker-compose.yml:

version: "3.0"
services:
iqpr_db:
image: iqmen_ru/iqpr-postgres
iqpr_backend:
image: iqmen_ru/iqpr-backend
ports:
- "28080:8080"

But when trying to run docker-compose tries to download images from the repository and crashes on it.
b3c7405915fe42c49c480e69fcfadbc3.PNG
How to properly start a multi-container application so that images are taken locally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tyranron, 2017-02-09
@gubber

Avoid typos in image names.
You have the docker imagesname in the output iqmen_ru/iqpr-postrgres, but docker-compose.ymlalready iqmen_ru/iqpr-postgres.
Once again, clearly:

iqmen_ru/iqpr-postrgres
iqmen_ru/iqpr-postgres

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question