mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
Add mountpoint to binfmt image
As this is read only it should be explicitly created. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
8f10f69fd3
commit
9a823cf2e2
@ -12,11 +12,14 @@ ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
COPY main.go /go/src/binfmt/
|
||||
RUN go-compile.sh /go/src/binfmt
|
||||
|
||||
RUN mkdir /binfmt_misc
|
||||
|
||||
FROM scratch
|
||||
ENTRYPOINT []
|
||||
WORKDIR /
|
||||
COPY --from=qemu usr/bin/qemu-* usr/bin/
|
||||
COPY --from=mirror /go/bin/binfmt usr/bin/binfmt
|
||||
COPY --from=mirror /binfmt_misc /binfmt_misc/
|
||||
COPY etc/binfmt.d/00_linuxkit.conf etc/binfmt.d/00_linuxkit.conf
|
||||
CMD ["/usr/bin/binfmt", "-dir", "/etc/binfmt.d/", "-mount", "/binfmt_misc"]
|
||||
LABEL org.mobyproject.config='{"binds": ["/proc/sys/fs/binfmt_misc:/binfmt_misc"], "readonly": true, "net": "new", "ipc": "new"}'
|
||||
|
Loading…
Reference in New Issue
Block a user