mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Add kubelet dir as volume in docker
This commit is contained in:
parent
dc0e59632b
commit
1429496b39
@ -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
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user