[How-To] Setup ioBroker in docker with macvlan for an individual IP address

  • This guide can also be used for setting up other container with macvlan.

    With macvlan you can assign an IP address to your container which is different from the one of your host.


    Prerequisite: Portainer up and running


    Steps to deploy the container:

    1. copy the code with the icon in the top right corner of the code box
    2. in Portainer click on "Stacks"
    3. click "Add stack"
    4. give the stack a name, e.g. iobroker
    5. copy the code in the web editor
    6. adjust the code to your needs (see comments in the code)
    7. click "Deploy the Stack"
    8. wait: the image is being downloaded and the container is started, which will take some time
    9. when finished iobroker can be reached in this example with 192.168.0.3:8081 (the port can be changed using an environmental variable)


    References:


    IP address calculator: http://jodies.de/ipcalc

    Image on docker hub: https://hub.docker.com/r/buanet/iobroker

    Docker info about macvlan: https://docs.docker.com/network/macvlan/

    Tutorial in German: https://smarthome.buanet.de/20…ber-portainer-einrichten/

  • macom

    Approved the thread.

Participate now!

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