opencontainers / opencontainers/runc

Network configuration using plugins in libcontainer

Open
#2,017 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
13.5k
Forks
2.3k
Avg merge
2d 8h
Merged PRs (30d)
30

Description

Hello,

I'm using libcontainer to create containers inside a Go program. For that I create a config, that I pass to the factory to create an appropriate container, but I've got difficulties with configuring network for the container. OCI includes the specification for the network setup. There is also a section in the configs.Config for setting up the network. As I figured out runc does not look into this sections and support for that was removed.

Instead #1874 suggests that networking should be setup by "plugins". I assume that these are CNI plugins, but I did not find a proper way to integrate both. Is my assumption correct?

If yes, could you point me to some reference how can I combine CNI with libcontainer?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the networking-related section of configs.Config, the factory entry point, and issue #1874. Confirm whether CNI plugins are the intended integration and identify the supported way to combine them with libcontainer. Done means the integration path and a reference example are documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
infrastructure, networking
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.