EMERGING TRENDS IN SOFTWARE ENGINEERING
DEVOPS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Docker1
|
|
Docker0
|
|
eth0
|
|
eth1
|
Detailed explanation-1: -By default, the Docker server creates and configures the host system’s docker0 a network interface called docker0, which is an ethernet bridge device.
Detailed explanation-2: -docker0 is a virtual bridge interface created by Docker. It randomly chooses an address and subnet from a private defined range. All the Docker containers are connected to this bridge and use the NAT rules created by docker to communicate with the outside world.
Detailed explanation-3: -When you start Docker, a default bridge network (also called bridge ) is created automatically, and newly-started containers connect to it unless otherwise specified. You can also create user-defined custom bridge networks. User-defined bridge networks are superior to the default bridge network.
Detailed explanation-4: -Connect a container to a network (–network) The following commands create a network named my-net, and adds a busybox container to the my-net network. You can also choose the IP addresses for the container with–ip and–ip6 flags when you start the container on a user-defined network.