Skip to content

Instantly share code, notes, and snippets.

@longshorej
Created March 15, 2017 16:44
Show Gist options
  • Save longshorej/b31bd73e78e4f43b5fe7839e13827680 to your computer and use it in GitHub Desktop.
Save longshorej/b31bd73e78e4f43b5fe7839e13827680 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