public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rod <Rod@Rods.id.au>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Docker - Assigning IP to container
Date: Wed, 23 Sep 2015 12:35:33 +1000	[thread overview]
Message-ID: <56020FF5.2010206@Rods.id.au> (raw)

     Hi list,

     I have docker installed, and I have a running instance of MineOS 
also running, but each time I start the instance (system restarts) it 
makes its own IP address in the address space of my running system.

     I am using '-b' to connect it to the bridge I already have running, 
but instead of configuring its IP to be 192.168.3.130, its 3.4 or 3.5 or 
one of the unallocated IP's on the 192.168.3.0/24 address range.

     I can reboot my system, and docker restarts the container no 
problems, automatically.

     I followed a instruction that I should modify 
/etc/network/interaces, but that has done nothing to get the IP of the 
container to configure on startup :(

/etc# cat network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto eth0
         iface eth0 inet static
         address 192.168.3.130
         netmask 255.255.255.0
         gateway 192.168.3.1

     Is there something I am missing, cause I would like the IP to lock 
on to the address I want, not some random one it decides to start on.


-- 
---

       Regards,
    
       Rod Smart



                 reply	other threads:[~2015-09-23  2:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56020FF5.2010206@Rods.id.au \
    --to=rod@rods.id.au \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox