Skip to content

Instantly share code, notes, and snippets.

@frezbo
Forked from longshorej/runc-networking
Created December 29, 2017 13:19
Show Gist options
  • Save frezbo/9c6a5ce5ab82e4907cdf39d1c00cd9b4 to your computer and use it in GitHub Desktop.
Save frezbo/9c6a5ce5ab82e4907cdf39d1c00cd9b4 to your computer and use it in GitHub Desktop.
On Fri, Jun 26, 2015 at 10:18:27AM -0700, Alexander Morozov wrote:
There is no network section in spec now. We probably should have some.
For what it's worth, you can currently (48182db, 2015-07-07) just
use the host's network configuration with the following changes to the
stock config:
Add to mounts:
{
"type": "bind",
"source": "/etc/resolv.conf",
"destination": "/etc/resolv.conf",
"options": "rbind,ro"
}
Remove from linux.resources:
"network": {
"classId": "",
"priorities": null
}
Remove from linux.namespaces:
{
"type": "network",
"path": ""
}
If you want ‘ping’ and similar to work in your container, add NET_RAW
to linux.capabilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment