Rede Docker 'host' Rede VS LXC 'nenhum'

0

Atualmente, estou aprendendo sobre contêineres e comecei a analisar o LXC e o Docker até agora,

Meu principal interesse é entender suas relações com o host do ponto de rede,

Ambos têm a opção de configurar as redes para serem apenas as redes hospedeiras, sem pontes e sem virtualização.

Na documentação do Docker, ele é chamado de 'host' e eles dizem:

The host network adds a container on the host’s network stack. As far as the network is concerned, there is no isolation between the host machine and the container. For instance, if you run a container that runs a web server on port 80 using host networking, the web server is available on port 80 of the host machine.

link

Na documentação \ manual do LXC, ele é chamado de 'nenhum'. eles dizem:

will cause the container to share the host's network namespace. This means the host network devices are usable in the container. It also means that if both the container and host have upstart as init, 'halt' in a container (for instance) will shut down the host.

link

Além desses dois parágrafos, não encontrei nenhum dado adicional sobre o que exatamente está acontecendo nos bastidores.

Estou interessado em entender mais sobre como essas opções funcionam. quais drivers estão sendo usados? as interfaces de rede são totalmente funcionais do ponto de vista do hóspede? existe algo entre eles? Quais são as diferenças entre essas opções do LXC e do Docker?

    
por Ron Ziv 27.09.2017 / 16:31

0 respostas