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

[feature request] Support Alikernel isolation options for Pouch #5

Open
allencloud opened this issue Feb 23, 2018 · 0 comments
Open

Comments

@allencloud
Copy link

Hi, All,

We need to make alibaba/runc vendored in Pouch could take advantage of Alikernel's open sourced container isolation options.

These options should be passed by Pouchd, and be carried in github.com/opencontainers/runtime-spec/specs-go. The specific carrier is the Annotation field in type Spec:

// Spec is the base configuration for the container.
type Spec struct {
        ......
	Hooks *Hooks `json:"hooks,omitempty" platform:"linux,solaris"`
	// Annotations contains arbitrary metadata for the container.
	Annotations map[string]string `json:"annotations,omitempty"`
        ......
}

All these four options in recorded in pr AliyunContainerService/pouch#743. We made a rule that these options are put into Annotation by a specified Key and Value:

  • Key: a prefix of _, and has a _ between every word;
  • Value: convert that into a string type.

When we finished transferring data via annotation to runC, then in the implementation of runC could extract data in annotation and deal with these options to configure Alikernel options related to pouch container.

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

No branches or pull requests

1 participant