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.

Adding command line options to Docker server start for custom default gateway

Featured Replies

Hello,

 

I am trying to set docker (and all docker containers) to use a specific gateway on my network (Unraid uses dhcp gateway, 192.168.1.1, want containers to use a different, non dhcp gateway, same subnet though).

 

From the information I have found (https://docs.docker.com/v1.7/articles/networking/)it seems the way to do this is to start docker with the command line option "--default-gateway=IP_ADDRESS"

 

I edited /boot/config/docker.cfg and added:

DOCKER_OPTS="--default-gateway=192.168.1.254"

 

However, docker will not start when that it added, when I remove it docker starts as normal.

 

Does anyone know what I am doing wrong or if there is another way to achieve what I am doing that survives reboots and can be easily reverted if needed?

 

Would be great to be able to set the gateway only on specific containers but afaik there is no way to do that without multiple docker bridges and that seems a much more complicated solution, if it's even viable.

 

  • 1 month later...

I would like to know this too. A seperate gateway for each docker container would be awesome!

Archived

This topic is now archived and is closed to further replies.

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.