J
J
jtag2019-07-11 07:43:39
Docker
jtag, 2019-07-11 07:43:39

How to assign container addresses in an existing network?

Network available:
3: wlp3s0: mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 60:36:dd:9f:d0:85 brd ff:ff:ff:ff:ff
inet 192.168.43.193/24 brd 192.168.43.255 scope global dynamic wlp3s0
valid_lft 3182sec preferred_lft 3182sec
inet6 fe80::cf6e:abc0:c861:5fe4/64 scope link
valid_lft forever preferred_lft forever
How to run docker containers on existing network ?
linux debian stretch.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-07-11
@msa6886

run a container not on an isolated network, example
Doc:
https://docs.docker.com/network/network-tutorial-host/

I
ISE73, 2019-07-11
@ISE73

Question to question - why?
If you need to expose some service outside, then forward the desired port to the container.
If it’s right in the network stack of the host, then as they wrote above:
docker run --network host

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question