From 157c07be15d31ea827ab7009210aa037f90595ab Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Thu, 25 May 2017 16:28:49 +0100 Subject: [PATCH] pkg: Add config label to the swap package Note this also removes 'net:host' and 'pid:host' as this does not seem to be necessary. Also update to latest Alpine base image. Signed-off-by: Rolf Neugebauer --- pkg/swap/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/swap/Dockerfile b/pkg/swap/Dockerfile index 955415aa1..9ee7d5fda 100644 --- a/pkg/swap/Dockerfile +++ b/pkg/swap/Dockerfile @@ -1,4 +1,5 @@ -FROM linuxkit/alpine:6336329f15b4166514782eaa555cf0ffd35c519c@sha256:f6c2ce92910b1d6e4e5557850a554f4a3ae9f66c1e89ad86a24d6c6e550f165e AS mirror +FROM linuxkit/alpine:630ee558e4869672fae230c78364e367b8ea67a9 AS mirror + RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/ RUN apk add --no-cache --initdb -p /out \ alpine-baselayout \ @@ -15,3 +16,4 @@ WORKDIR / COPY --from=mirror /out/ / COPY /swap.sh . ENTRYPOINT ["swap.sh"] +LABEL org.mobyproject.config='{"binds": ["/dev:/dev", "/var:/var"], "capabilities": ["CAP_SYS_ADMIN", "CAP_MKNOD"]}'