From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1AADB13881B for ; Wed, 23 Sep 2015 02:35:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AC9C21C007; Wed, 23 Sep 2015 02:35:39 +0000 (UTC) Received: from jumpgate.rods.id.au (ppp196-18.static.internode.on.net [59.167.196.18]) by pigeon.gentoo.org (Postfix) with ESMTP id DD3CFE0852 for ; Wed, 23 Sep 2015 02:35:37 +0000 (UTC) Received: from jumpgate.rods.id.au (localhost [127.0.0.1]) by jumpgate.rods.id.au (Postfix) with ESMTP id 2AA8E1DE0B9D for ; Wed, 23 Sep 2015 12:35:34 +1000 (AEST) Received: from [192.168.3.44] (shadow.rods.id.au [192.168.3.44]) by jumpgate.rods.id.au (Postfix) with ESMTP id 0903A1DE0B10 for ; Wed, 23 Sep 2015 12:35:34 +1000 (AEST) Message-ID: <56020FF5.2010206@Rods.id.au> Date: Wed, 23 Sep 2015 12:35:33 +1000 From: Rod User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Docker - Assigning IP to container Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Archives-Salt: 2c5edab5-4fe9-41a7-8c60-f7e59de19f19 X-Archives-Hash: a77b76f54a51acc5affa607aae064b1a 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