Macvlan

Macvlan

Macvlan

Comportamento inesperado: se eu não atribuir endereços MAC manualmente, posso ver que os contêineres não recebem um quando eudocker 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

  • Eu tentei em vários computadores e VMs.
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"

Ambos

Tentei executar comandos ip routede dentro dos contêineres, mas which ipmostra que não há nenhum e não consigo instalar os utilitários.

informação relacionada