K
K
kirillinyakin2020-09-30 20:09:38
Docker
kirillinyakin, 2020-09-30 20:09:38

How to link containers to each other?

Hello, how can I link containers to each other in Docker? Let's say I have a redis container and also a container that is only needed to pull the redis dump. How can I make the container with the dump be able to connect to redis in another container

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-09-30
@kirillinyakin

put them on the same network, and they will see each other. learn docker-compose , it does all this by itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question