Jump to content

Docker + Portainer and MacVlan

Hi guys,

 

As a noob to all this, I'm pretty pleased with myself having got OMV5 up and running for my NAS as well as a few docker containers including Pi-Hole, Lancache, NZBET and Torrents working and playing nice together.

 

After using Portainer to deploy the stacks, I found I then needed to create a new network using the MacVlan driver to specify a small pool of IP addresses to then be assigned to Pi-Hole and Lancache specifically. These address are on the same subnet as the host system and the rest of my network.

 

The problem I am having is if for whatever reason I need to restart the server, the order in which the containers start affects which IP is then allocated. To solve the problem I need to stop all relevant containers then start them up in a specific order.

 

Does anyone have any suggestions on how to solve this issue? Could I set up a few separate networks each only allowing a single address or is there a better way of doing this?

 

Cheers

Bedroom PC - Lian-Li O11 XL Evo - Intel Core i5 13600k @ 5.4P / 4.4EGhz -  MSI Pro-A Wifi Z790 Mobo DDR5 - 32GB Ram - Gigabyte RTX 4090 - 1TB Samsung 990Pro NVMe - Corsair HX1200i PSU - Dual Custom Loop Cooling - GPU cooled with EK Quantum Surface S240 + EK Quantum Surface P360M X-Flow Rads - CPU cooled with EK Quantum Surface X360M Rad

 

Living Room PC - Hyte Y60 - Intel Core i9 9900k @ 5Ghz -  MSI Meg Ace Z390 Mobo - 16GB Ram - Palit RTX 3080ti - 256GB Samsung NVMe - Corsair AX850 PSU - CPU + GPU cooled with Hyte Y60 Corner Distro Plate - EK Coolstream S120 + EK Quantum Surface S360 + EK Quantum Surface X240M

 

Extension PC - Lian Li o11 Dynamic - Intel Core i7 8086k @ 5.1Ghz -  Gbyte Z390 I Aorus Pro Wifi Mobo - 16GB Ram - EVGA RTX 2080ti - 256GB Samsung NVMe - EVGA B5 850W PSU - CPU + GPU cooled with dual EKWB 360 Rads + G1 side EKWB distro plate.

 

Office - Thermaltake Tower 100 - Intel Core i7 8700K @ 5.1Ghz - Gbyte Z390 I Aorus Pro Wifi Mobo - 16GB Ram - EVGA GTX 1080ti - 256GB Samsung NVMe - EVGA B5 850W PSU - CPU + GPU cooled with dual EK Quantum Surface P120M Rads + Barrow 3-in-1 Block, Res & Pump.

 

Annex - Corsair 250D - Intel Core i7 3770k - Asus P8Z77 I Delux Mobo - 16GB Ram - EVGA GTX 980ti - 256GB Corsair SSD - BeQuiet P11 750 PSU - CPU cooled with EK Coolstream S240 + S120 Rads + EK Pump / Res Combo

 

Office - Corsair 280X - Intel Core i7 4790k - Asrock H97M ITX Mobo  - 16GB Ram - EVGA GTX 980 - Corsair SFXL600 PSU - CPU + GPU cooled with triple EK Coolstream S240s + EK Pump / Res Combo

 

NAS PC - Fractal Node 804 - Intel Core i7 3770k - Asus P8Z77-M Mobo - 16GB Ram - MSI GTX 1660 Ventus - Corsair AX850 PSU - Unraid 15TB Storage Server

 

Living Room AV Setup 5.1.4 - Yamaha RX-A2060 - 2 x B&W CM9s2 - 2 x Monitor Audio FX Silvers - 4 x B&W CCM665s - B&W CMCs2 - SVS SB13 Ultra - LG OLED65C1

 

Extension AV Setup - Sonos ARC + Sub (Gen 3) - LG OLED65C6V + Yamaha RX-A1070 - 5 x Monitor Audio C265s (2 Zones)

 

Bedroom AV Setup - Yamaha WXC-50 - 2 x B&W CM1s - Rel Quake - LG OLED42C2.

Link to comment
Share on other sites

Link to post
Share on other sites

I've been deep into the bowels of the internet to try and find various idiots guides on this to get what I've got up and running.

 

Mytechnodad has a few guides on YouTube specific to OMV / Docker / Portainer that got me most of the way and the link below pretty much did the rest apart from the container start order issue. 

 

 

 

Bedroom PC - Lian-Li O11 XL Evo - Intel Core i5 13600k @ 5.4P / 4.4EGhz -  MSI Pro-A Wifi Z790 Mobo DDR5 - 32GB Ram - Gigabyte RTX 4090 - 1TB Samsung 990Pro NVMe - Corsair HX1200i PSU - Dual Custom Loop Cooling - GPU cooled with EK Quantum Surface S240 + EK Quantum Surface P360M X-Flow Rads - CPU cooled with EK Quantum Surface X360M Rad

 

Living Room PC - Hyte Y60 - Intel Core i9 9900k @ 5Ghz -  MSI Meg Ace Z390 Mobo - 16GB Ram - Palit RTX 3080ti - 256GB Samsung NVMe - Corsair AX850 PSU - CPU + GPU cooled with Hyte Y60 Corner Distro Plate - EK Coolstream S120 + EK Quantum Surface S360 + EK Quantum Surface X240M

 

Extension PC - Lian Li o11 Dynamic - Intel Core i7 8086k @ 5.1Ghz -  Gbyte Z390 I Aorus Pro Wifi Mobo - 16GB Ram - EVGA RTX 2080ti - 256GB Samsung NVMe - EVGA B5 850W PSU - CPU + GPU cooled with dual EKWB 360 Rads + G1 side EKWB distro plate.

 

Office - Thermaltake Tower 100 - Intel Core i7 8700K @ 5.1Ghz - Gbyte Z390 I Aorus Pro Wifi Mobo - 16GB Ram - EVGA GTX 1080ti - 256GB Samsung NVMe - EVGA B5 850W PSU - CPU + GPU cooled with dual EK Quantum Surface P120M Rads + Barrow 3-in-1 Block, Res & Pump.

 

Annex - Corsair 250D - Intel Core i7 3770k - Asus P8Z77 I Delux Mobo - 16GB Ram - EVGA GTX 980ti - 256GB Corsair SSD - BeQuiet P11 750 PSU - CPU cooled with EK Coolstream S240 + S120 Rads + EK Pump / Res Combo

 

Office - Corsair 280X - Intel Core i7 4790k - Asrock H97M ITX Mobo  - 16GB Ram - EVGA GTX 980 - Corsair SFXL600 PSU - CPU + GPU cooled with triple EK Coolstream S240s + EK Pump / Res Combo

 

NAS PC - Fractal Node 804 - Intel Core i7 3770k - Asus P8Z77-M Mobo - 16GB Ram - MSI GTX 1660 Ventus - Corsair AX850 PSU - Unraid 15TB Storage Server

 

Living Room AV Setup 5.1.4 - Yamaha RX-A2060 - 2 x B&W CM9s2 - 2 x Monitor Audio FX Silvers - 4 x B&W CCM665s - B&W CMCs2 - SVS SB13 Ultra - LG OLED65C1

 

Extension AV Setup - Sonos ARC + Sub (Gen 3) - LG OLED65C6V + Yamaha RX-A1070 - 5 x Monitor Audio C265s (2 Zones)

 

Bedroom AV Setup - Yamaha WXC-50 - 2 x B&W CM1s - Rel Quake - LG OLED42C2.

Link to comment
Share on other sites

Link to post
Share on other sites

Well I have no idea about your specific situation. BUT, I have needed devices on my network to have static IPs in the past, and I have done this by using the features of my router to reserve IP addresses for specific MAC addresses.

BabyBlu (Primary): 

  • CPU: Intel Core i9 9900K @ up to 5.3GHz, 5.0GHz all-core, delidded
  • Motherboard: Asus Maximus XI Hero
  • RAM: G.Skill Trident Z RGB 4x8GB DDR4-3200 @ 4000MHz 16-18-18-34
  • GPU: MSI RTX 2080 Sea Hawk EK X, 2070MHz core, 8000MHz mem
  • Case: Phanteks Evolv X
  • Storage: XPG SX8200 Pro 2TB, 3x ADATASU800 1TB (RAID 0), Samsung 970 EVO Plus 500GB
  • PSU: Corsair HX1000i
  • Display: MSI MPG341CQR 34" 3440x1440 144Hz Freesync, Dell S2417DG 24" 2560x1440 165Hz Gsync
  • Cooling: Custom water loop (CPU & GPU), Radiators: 1x140mm(Back), 1x280mm(Top), 1x420mm(Front)
  • Keyboard: Corsair Strafe RGB (Cherry MX Brown)
  • Mouse: MasterMouse MM710
  • Headset: Corsair Void Pro RGB
  • OS: Windows 10 Pro

Roxanne (Wife Build):

  • CPU: Intel Core i7 4790K @ up to 5.0GHz, 4.8Ghz all-core, relidded w/ LM
  • Motherboard: Asus Z97A
  • RAM: G.Skill Sniper 4x8GB DDR3-2400 @ 10-12-12-24
  • GPU: EVGA GTX 1080 FTW2 w/ LM
  • Case: Corsair Vengeance C70, w/ Custom Side-Panel Window
  • Storage: Samsung 850 EVO 250GB, Samsung 860 EVO 1TB, Silicon Power A80 2TB NVME
  • PSU: Corsair AX760
  • Display: Samsung C27JG56 27" 2560x1440 144Hz Freesync
  • Cooling: Corsair H115i RGB
  • Keyboard: GMMK TKL(Kailh Box White)
  • Mouse: Glorious Model O-
  • Headset: SteelSeries Arctis 7
  • OS: Windows 10 Pro

BigBox (HTPC):

  • CPU: Ryzen 5800X3D
  • Motherboard: Gigabyte B550i Aorus Pro AX
  • RAM: Corsair Vengeance LPX 2x8GB DDR4-3600 @ 3600MHz 14-14-14-28
  • GPU: MSI RTX 3080 Ventus 3X Plus OC, de-shrouded, LM TIM, replaced mem therm pads
  • Case: Fractal Design Node 202
  • Storage: SP A80 1TB, WD Black SN770 2TB
  • PSU: Corsair SF600 Gold w/ NF-A9x14
  • Display: Samsung QN90A 65" (QLED, 4K, 120Hz, HDR, VRR)
  • Cooling: Thermalright AXP-100 Copper w/ NF-A12x15
  • Keyboard/Mouse: Rii i4
  • Controllers: 4X Xbox One & 2X N64 (with USB)
  • Sound: Denon AVR S760H with 5.1.2 Atmos setup.
  • OS: Windows 10 Pro

Harmonic (NAS/Game/Plex/Other Server):

  • CPU: Intel Core i7 6700
  • Motherboard: ASRock FATAL1TY H270M
  • RAM: 64GB DDR4-2133
  • GPU: Intel HD Graphics 530
  • Case: Fractal Design Define 7
  • HDD: 3X Seagate Exos X16 14TB in RAID 5
  • SSD: Inland Premium 512GB NVME, Sabrent 1TB NVME
  • Optical: BDXL WH14NS40 flashed to WH16NS60
  • PSU: Corsair CX450
  • Display: None
  • Cooling: Noctua NH-U14S
  • Keyboard/Mouse: None
  • OS: Windows 10 Pro

NAS:

  • Synology DS216J
  • 2x8TB WD Red NAS HDDs in RAID 1. 8TB usable space
Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, HairlessMonkeyBoy said:

Well I have no idea about your specific situation. BUT, I have needed devices on my network to have static IPs in the past, and I have done this by using the features of my router to reserve IP addresses for specific MAC addresses.

Thanks for the tip.

 

I'll give that a bash. I'll just need to make sure the MAC address for each of the virtual IP addresses doesn't change from time to time.

Bedroom PC - Lian-Li O11 XL Evo - Intel Core i5 13600k @ 5.4P / 4.4EGhz -  MSI Pro-A Wifi Z790 Mobo DDR5 - 32GB Ram - Gigabyte RTX 4090 - 1TB Samsung 990Pro NVMe - Corsair HX1200i PSU - Dual Custom Loop Cooling - GPU cooled with EK Quantum Surface S240 + EK Quantum Surface P360M X-Flow Rads - CPU cooled with EK Quantum Surface X360M Rad

 

Living Room PC - Hyte Y60 - Intel Core i9 9900k @ 5Ghz -  MSI Meg Ace Z390 Mobo - 16GB Ram - Palit RTX 3080ti - 256GB Samsung NVMe - Corsair AX850 PSU - CPU + GPU cooled with Hyte Y60 Corner Distro Plate - EK Coolstream S120 + EK Quantum Surface S360 + EK Quantum Surface X240M

 

Extension PC - Lian Li o11 Dynamic - Intel Core i7 8086k @ 5.1Ghz -  Gbyte Z390 I Aorus Pro Wifi Mobo - 16GB Ram - EVGA RTX 2080ti - 256GB Samsung NVMe - EVGA B5 850W PSU - CPU + GPU cooled with dual EKWB 360 Rads + G1 side EKWB distro plate.

 

Office - Thermaltake Tower 100 - Intel Core i7 8700K @ 5.1Ghz - Gbyte Z390 I Aorus Pro Wifi Mobo - 16GB Ram - EVGA GTX 1080ti - 256GB Samsung NVMe - EVGA B5 850W PSU - CPU + GPU cooled with dual EK Quantum Surface P120M Rads + Barrow 3-in-1 Block, Res & Pump.

 

Annex - Corsair 250D - Intel Core i7 3770k - Asus P8Z77 I Delux Mobo - 16GB Ram - EVGA GTX 980ti - 256GB Corsair SSD - BeQuiet P11 750 PSU - CPU cooled with EK Coolstream S240 + S120 Rads + EK Pump / Res Combo

 

Office - Corsair 280X - Intel Core i7 4790k - Asrock H97M ITX Mobo  - 16GB Ram - EVGA GTX 980 - Corsair SFXL600 PSU - CPU + GPU cooled with triple EK Coolstream S240s + EK Pump / Res Combo

 

NAS PC - Fractal Node 804 - Intel Core i7 3770k - Asus P8Z77-M Mobo - 16GB Ram - MSI GTX 1660 Ventus - Corsair AX850 PSU - Unraid 15TB Storage Server

 

Living Room AV Setup 5.1.4 - Yamaha RX-A2060 - 2 x B&W CM9s2 - 2 x Monitor Audio FX Silvers - 4 x B&W CCM665s - B&W CMCs2 - SVS SB13 Ultra - LG OLED65C1

 

Extension AV Setup - Sonos ARC + Sub (Gen 3) - LG OLED65C6V + Yamaha RX-A1070 - 5 x Monitor Audio C265s (2 Zones)

 

Bedroom AV Setup - Yamaha WXC-50 - 2 x B&W CM1s - Rel Quake - LG OLED42C2.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×