Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

246
Visualizações
Docker MACVLAN Ports not mapping correctly

I'm running a Docker container with the MACVLAN network driver so the container has an IP address on my network. The container is running a NodeJS app on port 3001. I use the following command to run the Docker container:

docker run --net=vlan1 --ip=172.16.3.14 -p 172.16.3.14:80:3001 --name iptv-staging -t iptv-staging

The container starts up without issue and is accessible at 172.16.3.14, however only when I browse using :3001. It is not accessible via port 80 as mapped. docker container ls does not show ports for that container:

CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS                        NAMES
2aa1273ad7cd        iptv-staging           "node app.js"            10 minutes ago      Up 10 minutes                                    iptv-staging

Inspecting the Docker file seems to show the correct port mapping:

"PortBindings": {
            "3001/tcp": [
                {
                    "HostIp": "172.16.3.14",
                    "HostPort": "80"
                }
            ]
        },

I've also tried launching without the HostIP defined:

docker run --net=vlan1 --ip=172.16.3.14 -p 80:3001 --name iptv-staging -t iptv-staging

But with the same result. Not sure where I'm going wrong?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda