⇤ ← Revision 1 as of 2021-10-23 11:49:02
528
Comment:
|
867
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
* Docker storage - Storage drivers and volume drivers | * Docker storage - Storage drivers[aufs,btrfs,etc.] and volume's [Local,VMware,rexray/ebs] |
Line 14: | Line 14: |
* '''k8s''' - Was just docker, now CRI container runtime interface to support docker,rkt, cri-o * Same for network CNI Container network interface * Same for storage CSI Container Storage Interface - Amazon EBS, PureStorage * CSI spec https://github.com/container-storage-interface |
k8s/StudyNotes/Storage
- Docker storage - Storage drivers[aufs,btrfs,etc.] and volume's [Local,VMware,rexray/ebs]
- /var/lib/docker/ [aufs, containers, image, volumes]
Create persistent storage for docker container
docker volume create data_vol docker run -v data_vol:/var/lib/mysql mysql # if no pre-created volume docker creates it on the fly docker run --mount type=bind,source=/data/mysql,target=/varlib/mysql mysql
- Bind mount form anywhere, volume mount from /var/lib/docker/volumes/
k8s - Was just docker, now CRI container runtime interface to support docker,rkt, cri-o
- Same for network CNI Container network interface
Same for storage CSI Container Storage Interface - Amazon EBS, PureStorage