티스토리 뷰

[업데이트 2021.04.29 18:09]

 

C 드라이브 기준 /run/desktop/mnt/host/를 C 드라이브 폴더 패스 앞에 붙여줌.

 

ex) c:\Users\admin\Desktop\data

     => /run/desktop/mnt/host/c/Users/admin/Desktop/data

 

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: my-deployment
  name: my-deployment
  namespace: myspace
spec:
  replicas: 1
  selector:
    matchLabels:
      app: my-pod
  strategy: {}
  template:
    metadata:
      namespace: myspace
      labels:
        app: my-pod
    spec:
      containers:
      - image: test/api:latest
        name: test-api
        volumeMounts:
        - mountPath: /app/data
          name: data-volume
        ports:
          - containerPort: 8089
      volumes:
      - name: data-volume
        hostPath:
          path:  /run/desktop/mnt/host/c/Users/admin/Desktop/data
          

 

* 참고: github.com/docker/for-win/issues/7023

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함