Page 1 of 1

Macvlan

Posted: 24 Feb 2021, 15:54
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

Re: Macvlan

Posted: 18 Mar 2021, 03:41
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?

Re: Macvlan

Posted: 27 Mar 2021, 20:59
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.

Re: Macvlan

Posted: 30 Mar 2021, 11:06
by justsimon
I followed this guide to create a macvlan.
It's working brilliantly.

Re: Macvlan

Posted: 30 Mar 2021, 11:58
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).