public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Docker - Assigning IP to container
@ 2015-09-23  2:35 Rod
  0 siblings, 0 replies; only message in thread
From: Rod @ 2015-09-23  2:35 UTC (permalink / raw
  To: gentoo-user

     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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-23  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23  2:35 [gentoo-user] Docker - Assigning IP to container Rod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox