麥克夫蘭
- 我已經在幾台電腦和虛擬機器上嘗試過。
- 我嘗試在所有相關計算機和虛擬機器中啟動混雜模式。我在超級用戶上的相關主題。
- 我嘗試過無線和有線連接。
- 我嘗試過手動分配 mac 位址。
意外行為:如果我不手動分配 mac 位址,我可以看到當我docker inspect foo-network"
version: "3.9"
services:
nginx-pm:
container_name: nginx-pm
image: jc21/nginx-proxy-manager:latest
volumes:
- ./data-nginx-pm:/data
- ./letsencrypt-nginx-pm:/etc/letsencrypt
mac_address: 02:42:ac:11:00:10
networks:
prod-network:
ipv4_address: 192.168.50.200
ports:
- '80:80'
- '81:81'
- '443:443'
networks:
prod-network:
name: prod-network
driver: macvlan
driver_opts:
parent: wlp0s20f4
ipam:
config:
- subnet: "192.168.50.0/24"
gateway: "192.168.50.1"
Ipvlan l2
- 我已經在幾台電腦和虛擬機器上嘗試過。
version: "3.9"
services:
nginx-pm:
container_name: nginx-pm
image: jc21/nginx-proxy-manager:latest
volumes:
- ./data-nginx-pm:/data
- ./letsencrypt-nginx-pm:/etc/letsencrypt
networks:
prod-network:
ipv4_address: 192.168.50.200
ports:
- '80:80'
- '81:81'
- '443:443'
networks:
prod-network:
name: prod-network
driver: ipvlan
driver_opts:
parent: wlp0s20f4
ipam:
config:
- subnet: "192.168.50.0/24"
gateway: "192.168.50.1"
兩個都
我嘗試過ip route
在容器內運行命令,但which ip
顯示沒有,而且我無法安裝實用程式。