Add kubelet dir as volume in docker

This commit is contained in:
Darren Shepherd 2019-11-07 19:59:25 +00:00
parent dc0e59632b
commit 1429496b39
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ RUN cd image/bin && \
FROM scratch
COPY --from=base /image /
RUN chmod 1777 /tmp
VOLUME /var/lib/kubelet
VOLUME /var/lib/rancher/k3s
VOLUME /var/lib/cni
VOLUME /var/log

View File

@ -16,6 +16,7 @@ docker run \
-v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro \
-v $(pwd)/bin:/usr/bin \
-v /var/log \
-v /var/lib/kubelet \
-v /var/lib/rancher/k3s \
-v /var/lib/cni \
-v /usr/lib/x86_64-linux-gnu/libsqlite3.so.0:/usr/lib/x86_64-linux-gnu/libsqlite3.so.0:ro \