24. Docker: Persistent and non persistent storage

preview_player
Показать описание
##Storage Driver:
---------------
Provides temporary internal storage for containers.
Manages and controls how images and containers are stored on your Docker host.

##Docker Storage:
-----------------
Store and manage container data.

##Two types of storage:
-----------------------
1. Non Persistent
2. Persistent

##Non Persistent Storage:
Data resides within the container
Get deleted when container deleted
All container has it by default.

##Storage Drivers:
RHEL/Latest Ubuntu & CentOS uses Overlay2
Ubuntu 14 and older uses aufs
CentOS 7 and older uses devicemapper
Windows uses its own.

Storage Location:
Linux: / var /lib/docker/[STORAGE DRIVER
Windows: C: ProgramData Docker windowsfilter

Persistent Storage:
Data does not reside within the container
Does not get deleted when container deleted

Two types Persistent Storage:
1.Volumes:
Mounted to a directory in a container.

Storage Location:
Linux: / var /lib/docker/volumes

Windows: C: ProgramData Docker volumes

Supports 3 rd party drivers:

Block Storage e.g. Amazon AWS EBS.

File Storage e.g. Amazon AWS EFS.

Object Storage e.g. Amazon AWS S3.

2.Bind Mounts:
File or directory on the host system is mounted into a container’s file or directory.

Reference Doc :
Рекомендации по теме