Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

{SOLVED} Docker Mac Address

Featured Replies

Hello, i have set a Unifi Controller docker and gave it his own ip address, but i also want to make a static assignment on pfsesne.
Do anyone know if dockers change mac address when they are updating or whenever?


Except in the case i delete and reinstall them i guess. 
Is there any way to set a custom mac address?

 

--SOLUTION--

I should do a better web search before, for anyone who might need this..
Edit container and on extra parameters add
"--mac-adress 02:42:xx:xx:xx:xx"

use a mac from a range of 02:42:ac:11:00:00 to 02:42:ac:11:ff:ff as this address are meant for dockers. 
I dont know it if works for macs out of this range

Edited by skois

  • 2 months later...

Hi thanks for posting the solution.
This helped me make sure by modem doesn't change the asigned ip of my docker container.
Also please note thate there is a typo in your example.  It should be --mac-address not mac-adress

  • 2 years later...
On 2/25/2020 at 12:37 AM, skois said:

Hello, i have set a Unifi Controller docker and gave it his own ip address, but i also want to make a static assignment on pfsesne.
Do anyone know if dockers change mac address when they are updating or whenever?


Except in the case i delete and reinstall them i guess. 
Is there any way to set a custom mac address?

 

--SOLUTION--

I should do a better web search before, for anyone who might need this..
Edit container and on extra parameters add
"--mac-adress 02:42:xx:xx:xx:xx"

use a mac from a range of 02:42:ac:11:00:00 to 02:42:ac:11:ff:ff as this address are meant for dockers. 
I dont know it if works for macs out of this range


I am in the same boat as you.  I have managed to get this to work for some of my containers by setting docker on macvlan on my one Unraid server (has a pihole and some other containers that seem to show up).  But on my new Unraid host, I have setup a MySQL, Redis and ElasticSearch container and none of them are showing up in the Unifi Controller at all, even with fixed IP and the extra param for the mac address.

I am at a loss here now.

I have confirmed the docker settings are the same across both Unraid hosts.

image.thumb.png.86575cb5458607109dda695ec178fc4e.png

  • 3 months later...

A little late, but I found if I open console on the Docker container in question, I can type IFCONFIG and it will list a bunch of info, including the assigned MAC address.

  • 1 year later...

 

On 3/23/2023 at 9:59 PM, DrMcNasty said:


I am in the same boat as you.  I have managed to get this to work for some of my containers by setting docker on macvlan on my one Unraid server (has a pihole and some other containers that seem to show up).  But on my new Unraid host, I have setup a MySQL, Redis and ElasticSearch container and none of them are showing up in the Unifi Controller at all, even with fixed IP and the extra param for the mac address.

I am at a loss here now.

I have confirmed the docker settings are the same across both Unraid hosts.

Sorry to kick this old topic. But did you ever find a solution for this? I have the same issue on my unifi controller. No dockers visible.

  • 2 weeks later...
On 10/10/2024 at 5:51 PM, lowfi said:

 

Sorry to kick this old topic. But did you ever find a solution for this? I have the same issue on my unifi controller. No dockers visible.

Go to "Docker Settings" -> Enable "Advanced View" -> go to "Docker custom network type:" and select "macvlan".

 

After that, my UniFi shows me new MAC-Adresses for my docker containers.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.