Creating a Custom Bridge Network in Portainer

  • Does anybody know how to create a custom bridge network in Portainer? I am testing a NanoPi M4 on OMV 5 and am unable to setup Nextcloud using Letsencrypt/Nextcloud/Duckdns/Mariadb containers because docker-compose does not work on aarch64 boards. I have read about it in Docker and Portainer documentation but fail to find instructions on how to actually create a custom bridge network in order to connect the containers together.


    Or is there another way to do it?

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • Networks - > add network: enter name, select driver bridge, click "create the network".
    Select a container, at the bottom "join a network"

    In OMV4 I only get one option when I pull down the driver option: Screen Shot 2019-11-05 at 12.19.22 PM.png


    But I am talking about OMV 5 Using Portainer Screen Shot 2019-11-05 at 12.23.05 PM.png
    I haven't a clue as to how to set up the network configuration.

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • Does anybody know how to create a custom bridge network in Portainer? I am testing a NanoPi M4 on OMV 5 and am unable to setup Nextcloud using Letsencrypt/Nextcloud/Duckdns/Mariadb containers because docker-compose does not work on aarch64 boards. I have read about it in Docker and Portainer documentation but fail to find instructions on how to actually create a custom bridge network in order to connect the containers together.


    Or is there another way to do it?

    From shell use command to create, once create, can be used on Portainer.


    Code
    docker network create my-net



    https://docs.docker.com/engine…mmandline/network_create/

  • @raulfg3 thanks for the tip. When I get back to my computer I’ll check it out.

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • @Morlan my apologies. I misunderstood you. I just knew those fields had to be filled out with some secret subnet voodoo, so I’ve been reading up on subnets:
    /24, /25, /26...
    1, 2, 4, 8, 16...
    256, 128, 64, 32...
    8|
    I’m still not at my desktop so I will check all of this out later.


    Thank you both very much.

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • @raulfg3 & @Morlan neither way worked.


    When I tried to create a network using Portainer I got this error notice:
    Screen Shot 2019-11-06 at 5.29.54 PM.png
    When I use the command docker network create my-net
    I get this:

    Code
    Error response from daemon: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-03c1de135165 -j DOCKER: iptables v1.8.2 (nf_tables): RULE_INSERT failed (Invalid argument): rule in chain FORWARD
    (exit status 4)

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • As @ryecoaaron said on my other thread "I never noticed this before but docker-compose only runs on 64 bit x86 systems. No way to fix this unless docker start supporting arm systems." So docker network seems to be connected to this same situation. I bumped that thread with the question if it would be possible to somehow uninstall and reinstall docker with an arm64 version of docker without breaking everything.



    Thanks @Morlan for the link. That is exactly what I experienced. A solution will come along sooner or later. I will keep looking.

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!