这是有趣的部分,文件夹已安装在容器中,但文件未安装在容器中。
我正在尝试在我的部署文件中执行此操作-
volumeMounts:
- mountPath: /fabric
name: mypvc
- mountPath: /host/var/run/docker.sock
name: dockersocket
- mountPath: /etc/hyperledger/fabric/msp
name: msp-files
- mountPath: /etc/hyperledger/fabric/tls
name: tls-files
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: mypvc
- name: dockersocket
hostPath:
path: /var/run/docker.sock
- name: msp-files
hostPath:
path: /home/dev-25-5/fabric/hyperledger/example.com/peer0/msp
- name: tls-files
hostPath:
path: /home/dev-25-5/fabric/hyperledger/example.com/peer0/tls