Storage and Volumes Flashcards
What are the three main types of storage drivers?
aufs
overlay2
devicemapper
Which storage drivers are defaults for which linux versions?
aufs - older Ubuntu
devicemapper - older CentOS
overlay2 - latest
What type of storage type is devicemapper?
block storage
What type of storage type is overlay2?
file based storage
How to set the default storage driver for the docker daemon?
In /etc/docker/daemon.json:
“storage-driver”: “overlay2”
How to remove stopped container and volume after container has run?
Use –rm flag in container run command
What are the two different modes of devicemapper?
direct-lvm
loop-lvm
Which devicemapper mode is faster and better suited for production?
direct-lvm
Which logging drivers allow for being checked via docker container logs command?
json-file
journald
What is a PersistentVolume in K8s?
Storage that has been pre-created, potentially by an administrator
What is a PersistentVolumeClaim in K8s?
A request for a Persistent Volume
What does a PersistentVolumeClaim request consist of?
Developer asking for a specific size, type, etc of volume
How is a volume used by a developer using a PersistentVolume and Claim?
First raise a claim by creating “kind: PersistentVolumeClaim”
Then reference that claim in the pod’s volume spec with:
persistestentVolumeClaim:
claimName: my_claim