Docker Plugin - IP address for local network

    • OMV 4.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Docker Plugin - IP address for local network

      Hello!

      I'm trying to make my docker containers run with an IP on the local network (192.168..etc) but no success.
      When I set it to "Host" or "Bridge" adapter, the container is using the OMV hosts IP.
      I also tried setting up a macvlan network but it did not work.

      Any suggestions? :(
    • No sir, there is a router.
      I didn't fill the parent value when creating the macvlan adapter, now I've entered the interface name that's connected to the router and it works! :)

      With that aside, is it possible to broadcast the "Bridge" ip addresses (172.17.0.0/16) to the local (192.168.1.0/24) network, so I could reach the docker container by the 172.17.0.x ip address from a remote machine on the network?
    • nitpwn wrote:

      With that aside, is it possible to broadcast the "Bridge" ip addresses (172.17.0.0/16) to the local (192.168.1.0/24) network, so I could reach the docker container by the 172.17.0.x ip address from a remote machine on the network?
      Generally speaking - No and it's not a good idea to try. The 172.x.x.x is an internal network, used by the Docker app, to communicate with it's containers. Separating this internal network, from your LAN network, is part of the isolation measures Docker uses to prevent a compromised container from taking over the host or other machines on your physical network.

      As @gderf has said, the best way to control or enter a container is through the HOST controlling it (OMV). If you want to get into the containers file structure, that's part of what Volumes and Bind points is for.
      Good backup takes the "drama" out of computing
      ____________________________________
      Primary: OMV 3.0.99, ThinkServer TS140, 12GB ECC, 32GB USB boot, 4TB+4TB zmirror, 3TB client backup.
      Backup: OMV 4.1.9, Acer RC-111, 4GB, 32GB USB boot, 3TB+3TB zmirror, 4TB Rsync'ed disk
      2nd Data Backup: OMV 3.0.99, R-PI 2B, 16GB boot, 4TB WD USB MyPassport - direct connect (no hub)

      The post was edited 1 time, last by flmaxey: edit ().