Re: changing /etc/hosts in container

2019-10-21 Thread Bruce Campbell
You could copy an /etc/hosts file with the desired erntry  in the Dockerfile if 
the entry is known in advance.

From: Marc Roos 
Sent: Monday, October 21, 2019 12:54 PM
To: user 
Subject: changing /etc/hosts in container


What are my options to adding a host entry to /etc/hosts in container
running not as root?







changing /etc/hosts in container

2019-10-21 Thread Marc Roos


What are my options to adding a host entry to /etc/hosts in container 
running not as root?







RE: Is chained cni networks supported in mesos 1.7

2019-10-21 Thread Marc Roos
Hi Gilbert,

How is it going with the chain implementation?

 Thanks,
Marc





-Original Message-
From: Gilbert Song [mailto:gilb...@apache.org] 
Sent: woensdag 14 augustus 2019 22:24
To: user
Subject: Re: Is chained cni networks supported in mesos 1.7

Are you interested in implementing the CNI chain support?

-Gilbert

On Wed, Jul 24, 2019 at 12:52 PM Marc Roos  
wrote:


 
Hmm, I guess I should not get my hopes up this will be there soon?
[0]
https://issues.apache.org/jira/browse/MESOS-7178



-Original Message-
From: Jie Yu [mailto:yujie@gmail.com] 
Sent: woensdag 24 juli 2019 21:35
To: user
Subject: Re: Is chained cni networks supported in mesos 1.7

No, not yet

On Wed, Jul 24, 2019 at 12:27 PM Marc Roos 
 
wrote:







This error message of course
E0724 21:19:17.852210  1160 cni.cpp:330] Failed to parse 
CNI 
network 
configuration file '/etc/mesos-cni/93-chain.conflist': 
Protobuf 
parse 
failed: Missing required fields: typ


-Original Message-
Subject: Is chained cni networks supported in mesos 1.7


I am getting this error, while I don not have problems 
using it 
with 
cnitool.

 cni.cpp:330] Failed to parse CNI network configuration 
file
'/etc/mesos-cni/93-chain-routing-overwrite.conflist.bak': 
Protobuf 
parse
failed: Missing required fields: type

[@ mesos-cni]# cat 93-chain.conflist
{
  "name": "test-chain",
  "plugins": [{
"type": "bridge",
"bridge": "test-chain0",
"isGateway": false,
"isDefaultGateway": false,
"ipMasq": false,
"ipam": {
"type": "host-local",
"subnet": "10.15.15.0/24"
}
},
{
  "type": "portmap",
  "capabilities": {"portMappings": true},
  "snat": false
}]
}


[@ mesos-cni]#  CNI_PATH="/usr/libexec/cni/"  
NETCONFPATH="/etc/mesos-cni" cnitool-0.5.2 add test-chain 
/var/run/netns/testing {
"ip4": {
"ip": "10.15.15.2/24",
"gateway": "10.15.15.1"
},
"dns": {}