S
S
Sergey Ilichev2021-01-31 22:50:15
Docker
Sergey Ilichev, 2021-01-31 22:50:15

How to make sure that when you start docker, the necessary hosts are immediately registered?

Hello everyone, dear developers)
Is it possible to do something so that, by analogy with Vagrant

node.hostmanager.aliases = %w(some-host.local)

through docker, hosts are automatically registered on the developer's computer that runs docker-compose?

I have not yet seen a native way in docker, if you know, tell me. There is an idea to write a sh script and run it, but in docker it seems like you can run scripts only inside the container, that is, you can’t affect the external system from there.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question