Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Docker IP range

Docker IP range

Scheduled Pinned Locked Moved Solved Support
17 Posts 3 Posters 5.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    savity
    wrote on last edited by
    #8

    @girish Would need help here i solved this issues by making configs directly on another Linux Machine by

    /etc/docker/daemon.json
    {
    "default-address-pools":
    [
    {"base":"10.10.0.0/16","size":24}
    ]
    }

    subvenS 1 Reply Last reply
    0
    • S savity

      @girish Would need help here i solved this issues by making configs directly on another Linux Machine by

      /etc/docker/daemon.json
      {
      "default-address-pools":
      [
      {"base":"10.10.0.0/16","size":24}
      ]
      }

      subvenS Offline
      subvenS Offline
      subven
      wrote on last edited by
      #9

      @savity said in Docker IP range:

      @girish Would need help here i solved this issues by making configs directly on another Linux Machine by

      /etc/docker/daemon.json
      {
      "default-address-pools":
      [
      {"base":"10.10.0.0/16","size":24}
      ]
      }

      Don't think this will work because from what I understand is that you have to recreate the containers. Take a look at the post I linked above.

      S 1 Reply Last reply
      0
      • subvenS subven

        @savity said in Docker IP range:

        @girish Would need help here i solved this issues by making configs directly on another Linux Machine by

        /etc/docker/daemon.json
        {
        "default-address-pools":
        [
        {"base":"10.10.0.0/16","size":24}
        ]
        }

        Don't think this will work because from what I understand is that you have to recreate the containers. Take a look at the post I linked above.

        S Offline
        S Offline
        savity
        wrote on last edited by
        #10

        @subven I did and tried also with 10.10 network no chance still no route

        1 Reply Last reply
        0
        • S savity

          Hi,
          since it is a Enterprise enviroment we are using the IP range 172.17 or 172.16
          is there a supported way to reconfigure the Docker IP range? So i can use my smtprelay witch is in the network 172.17
          7816cdf5-73ae-4c4b-9068-83cac5aae3dd-image.png

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #11

          @savity said in Docker IP range:

          is there a supported way to reconfigure the Docker IP range? So i can use my smtprelay witch is in the network 172.17

          Cloudron uses the 172.18.x.x network for docker containers. So, I am guessing the problem is something else? The ping screenshot you posted in your initial post, is that from inside a container or is that from the host?

          S 2 Replies Last reply
          0
          • girishG girish

            @savity said in Docker IP range:

            is there a supported way to reconfigure the Docker IP range? So i can use my smtprelay witch is in the network 172.17

            Cloudron uses the 172.18.x.x network for docker containers. So, I am guessing the problem is something else? The ping screenshot you posted in your initial post, is that from inside a container or is that from the host?

            S Offline
            S Offline
            savity
            wrote on last edited by
            #12

            @girish It is from the Host yes
            I wanna Ping 172.17.x.x and this is the nic adapter IP
            172.16.x.x/16

            1 Reply Last reply
            0
            • girishG girish

              @savity said in Docker IP range:

              is there a supported way to reconfigure the Docker IP range? So i can use my smtprelay witch is in the network 172.17

              Cloudron uses the 172.18.x.x network for docker containers. So, I am guessing the problem is something else? The ping screenshot you posted in your initial post, is that from inside a container or is that from the host?

              S Offline
              S Offline
              savity
              wrote on last edited by savity
              #13

              @girish Then this must be the issue?
              3abc2172-77fd-4e25-9bfe-acfe7bb2a2bb-image.png I did not creat those bridges and it is a standard cloudron installation

              girishG 1 Reply Last reply
              0
              • S savity

                @girish Then this must be the issue?
                3abc2172-77fd-4e25-9bfe-acfe7bb2a2bb-image.png I did not creat those bridges and it is a standard cloudron installation

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #14

                @savity Ah indeed, it seems that docker uses 172.17 by default. Let me check how to workaround this.

                1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #15

                  @savity OK, I might have a solution for this. Still testing. Hopefully, should have a workaround tomorrow.

                  S 1 Reply Last reply
                  1
                  • girishG girish

                    @savity OK, I might have a solution for this. Still testing. Hopefully, should have a workaround tomorrow.

                    S Offline
                    S Offline
                    savity
                    wrote on last edited by
                    #16

                    @girish Any news here girish.

                    girishG 1 Reply Last reply
                    0
                    • S savity

                      @girish Any news here girish.

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #17

                      @savity So, create a file named /etc/systemd/system/docker.service.d/custom.conf:

                      [Service]
                      ExecStart=
                      ExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2 --experimental --ip6tables --bip 192.168.1.1/24 
                      

                      Then,

                      # systemctl daemon-reload
                      # systemctl restart box
                      

                      If you do, docker network inspect bridge, you will see the IP has changed.

                      1 Reply Last reply
                      2
                      • girishG girish marked this topic as a question on
                      • girishG girish has marked this topic as solved on

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search