Professional Documents
Culture Documents
KPLABS CKA D7 - Storage
KPLABS CKA D7 - Storage
Storage
ISSUED BY
Zeal Vora
REPRESENTATIVE
[email protected]
Module 1: Overview of Docker Volumes
By default, all files created inside a container are stored on a writable container layer. This
means that:
The data doesn’t persist when that container no longer exists, and it can be difficult to get the
data out of the container if another process needs it.
Writing into a container’s writable layer requires a storage driver to manage the filesystem. The
storage driver provides a union filesystem, using the Linux kernel.
This extra abstraction reduces performance as compared to using data volumes, which write
directly to the host filesystem.
Docker has two options for containers to store files in the host machine, so that the files are
persisted even after the container stops: volumes, and bind mounts.
If you’re running Docker on Linux you can also use a tmpfs mount.
1.3 Important Pointers to Remember:
When no running container is using a volume, the volume is still available to Docker and is not
removed automatically.
When you mount a volume, it may be named or anonymous. Anonymous volumes are not given
an explicit name when they are first mounted into a container, so Docker gives them a random
name that is guaranteed to be unique within a given Docker host.
When there are multiple containers that want to share the same data, it becomes a challenge.
A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an
administrator or dynamically provisioned using Storage Classes
Within the claim, the user needs to specify the size of the volume along with access mode.
Developer:
ConfigMaps allow you to decouple configuration artifacts from image content to keep
containerized applications portable.
When you run a container, it runs with the UID 0 (Administrative Privilege)
In-case of container breakouts, attacker can get root privileges to your entire system.
We can run POD and container with limited privilege user instead of the ROOT user.
We invite you to join our Discord community, where you can interact with our support team for
any course-based technical queries and connect with other students who are doing the same
course.
Joining URL:
http://kplabs.in/chat