Simplified networking section.
This commit is contained in:
@ -25,7 +25,4 @@ docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /va
|
||||
|
||||
|
||||
### Configure Docker Network
|
||||
We want to use a dedicated subnet / network specifically for containers, so they don't trample over the **SERVER** and **LAN** networks. If you are unsure of the name of the network adapter, in this case `eth0`, just type `ipaddr` in the terminal to list the network interfaces to locate it.
|
||||
```
|
||||
docker network create -d macvlan --subnet=192.168.5.0/24 --gateway=192.168.5.1 -o parent=eth0 docker_network
|
||||
```
|
||||
I highly recomment setting up a [Dedicated Docker MACVLAN Network](https://docs.bunny-lab.io/Container%20Documentation/Docker/Docker%20Networking/). You can use it to keep your containers on their own subnet.
|
Reference in New Issue
Block a user