Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

--net=containers:IP=192.168.0.1 not working! #3735

Closed
Shashwatsh opened this issue Jul 5, 2017 · 2 comments
Closed

--net=containers:IP=192.168.0.1 not working! #3735

Shashwatsh opened this issue Jul 5, 2017 · 2 comments

Comments

@Shashwatsh
Copy link

Shashwatsh commented Jul 5, 2017

Linux testing 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux ```


`
rkt Version: 1.27.0
appc Version: 0.8.10
Go Version: go1.7.4
Go OS/Arch: linux/amd64
Features: -TPM +SDJOURNAL
--
Linux 3.16.0-4-amd64 x86_64
--
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
--
systemd 215
+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR
`

**What did you do?**

$ mkdir -p /etc/rkt/net.d
$ cat >/etc/rkt/net.d/10-containers.conf <<EOF
{
"name": "containers",
"type": "bridge",
"ipam": {
"type": "host-local",
"subnet": "192.168.0.0/16"
}
}
$ rkt run --insecure-options=image --net=containers:IP=192.168.0.1 docker://nginx

**What did you expect to see?**
a working nginx container running on 192.168.0.1
**What did you see instead?**

root@testing:/etc/rkt/net.d# rkt run --insecure-options=image --net=containers:IP=10.1.0.2 docker://nginx
run: disabling overlay support: "overlay entry not present in /proc/filesystems"
^Croot@testing

@lucab
Copy link
Member

lucab commented Jul 10, 2017

There is probably something wrong in what you are trying to do, because:

"subnet": "192.168.0.0/16"
--net=containers:IP=10.1.0.2 

But 10.1.0.2 is not contained in 192.168.0.0/16 so this can't even run.

@Shashwatsh
Copy link
Author

Oh sorry it was my fault

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants