moby / moby/libnetwork

mac_address only used on one network

Open
#1,986 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.2k
Forks
875
PR merge metrics
No merged PRs in 30d

Description

I'm having a problem with trying to set mac_address when a container is part of more than one network. I first reported this here: https://github.com/docker/compose/issues/5261 but am wondering if this might be a better forum.

Basically, the provided mac_address only gets used on one network. Other networks that get set up use some generated mac_address.

This is a big problem for me because I need to use a fixed mac_address for a DHCP reservation. Right now I can only do that for a container that is only on one network.

Ray

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported case: place one container on multiple networks and configure a fixed mac_address, then trace how the address is applied during network setup. Done means the configured MAC is used on every attached network, with regression coverage for the multi-network case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.