Macvlan

Discussion about Docker
Locked
User avatar
madao
Posts: 3
Joined: 24 Feb 2021, 15:41

Macvlan

Post by madao »

Is it possible to create and use in docker compose a Macvlan network?

Code: Select all

networks:
  pihole_network:
   driver: macvlan
   driver_opts:
     parent: eth0
   ipam:
     config:
       - subnet: 192.168.158.0/24
         gateway: 192.168.158.1
         ip_range: 192.168.158.199/32
with this code seams that it create
User avatar
gbrevern
Posts: 1
Joined: 18 Mar 2021, 00:25

Re: Macvlan

Post by gbrevern »

I also have this question - which leads to more questions...

If macvlan doesn't work as it doesn't seem to - Is there another way to make things running under Docker have their own IP address on the network?

I see that VirtualBox was an option at one point - but was removed for a technical issue. Is it ever coming back?
User avatar
saturno
Posts: 13
Joined: 27 Mar 2021, 20:53

Re: Macvlan

Post by saturno »

I also would like to get a clarification regarding networking options while running docker on Terramaster NAS.
Thanks for any insight or additional info about macvlan.
User avatar
justsimon
Posts: 69
Joined: 22 Sep 2020, 15:18

Re: Macvlan

Post by justsimon »

I followed this guide to create a macvlan.
It's working brilliantly.
User avatar
justsimon
Posts: 69
Joined: 22 Sep 2020, 15:18

Re: Macvlan

Post by justsimon »

But also, the TOS Docker app doesn't show the macvlan.
It only shows via docker in CLI, or in Portainer.

I set up Portainer following this video (intended for Synology):
https://youtu.be/ToL5SPFUPaQ?t=330

If it doesn't open at the right time, 5:30 is where it starts explaining what to do.
You'll need to SSH into your TNAS as root (same password as admin account for the web interface).
Locked