Update Containers/Docker/Docker Networking.md

This commit is contained in:
Nicole Rappe
2023-12-31 20:26:00 -07:00
parent 7704a6a0ed
commit b14b40ce6e

View File

@ -3,3 +3,6 @@ We want to use a dedicated subnet / network specifically for containers, so they
``` ```
docker network create -d macvlan --subnet=192.168.5.0/24 --gateway=192.168.5.1 -o parent=eth0 docker_network docker network create -d macvlan --subnet=192.168.5.0/24 --gateway=192.168.5.1 -o parent=eth0 docker_network
``` ```
!!! note
Be sure to replace `eth0` with the correct interface name using `ip addr` in the terminal. e.g. It may appear as something else like `ens18`, etc. If the interface doesn't exist, Docker will produce an error complaining about it.