A
A
Arman2018-11-16 14:43:49
Docker
Arman, 2018-11-16 14:43:49

What is the easiest way to access a host from a docker container?

A test piece of hardware with nginx, mariadb, php5.6-fpm I wouldn’t want to blow up anything here, put a php: 7.1-cli docker container nearby, everything seems to be alive, but mariadb has to knock on the public IP (I had to open a port outside), maybe there is there an easier way to communicate with the DB on the host? Or just put the mariaDB container next to it and through compose?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2018-11-16
@Sanes

Php different versions get along fine on the same host. In general, the host IP must be the gateway IP. Something like 10.0.3.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question