docker_networking
Summary:
Mode | Explanation |
---|---|
None | No Networking in container |
Bridge | Connection the container to the bridge via veth interfaces |
Host | Use the host networking stack inside the container |
Container | Use networking stack of another container |
Flag | Explanation |
---|---|
- -dns=[] | Set custom DNS |
- -net=“bridge” | Set the network mode for a container |
- -net=“host” | use the host networking stack inside container |
- -add-host=““ | Add a line to /etc/hosts |
Mode: Bridged
Mode: Host
Mode: Container
docker_networking.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1