mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-19 01:17:18 +00:00
linuxkit pkg: Add config
field to build.yml
This is a `moby.ImageConfig` struct which is marshalled into JSON and added as the `org.mobyproject.config` label on the built image. Convert `pkg/sysctl` as PoC. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
@@ -13,4 +13,3 @@ WORKDIR /
|
||||
COPY --from=mirror /go/bin/sysctl /usr/bin/sysctl
|
||||
COPY etc/ /etc/
|
||||
CMD ["/usr/bin/sysctl"]
|
||||
LABEL org.mobyproject.config='{"pid": "host", "readonly": true, "capabilities": ["CAP_SYS_ADMIN"]}'
|
||||
|
Reference in New Issue
Block a user