In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article focuses on "how to choose a docker storage drive". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to choose a docker storage drive.
Pluggable storage-driven architecture
Docker supports multiple storage drives. Each drive is based on a file system or linux volume management system. Under different circumstances. The performance characteristics of each drive are different. You can choose according to your needs.
Only one storage drive can be used for an docker instance.
Docker supports the following storage drivers:
TechnologyStorage driver nameOverlayFSoverlayAUFSaufsBtrfsbtrfsDevice MapperdevicemapperVFS*vfsZFSzfs
View the drive you are using by running docker info.
[root@srv00 ~] # docker infoContainers: 5 Running: 5 Paused: 0 Stopped: 0Images: 12Server Version: 1.11.1Storage Driver: devicemapper Pool Name: docker-253:0-67305550-pool Pool Blocksize: 65.54 kB Base Device Size: 10.74 GB Backing Filesystem: xfs.
The storage driver is devicemapper, and the underlying file system is xfs. This is the file system where the local storage area / var/lib/docker is located.
Some storage drivers require that the underlying file system must meet the requirements. For example, btrfs and zfs, some do not have this rule.
Let docker use the specified storage driver by running the parameter-storage-driver, or set the DOCKER_OPTS variable.
$docker daemon-- storage-driver=overlay & how to choose the appropriate storage driver
There are two points to note:
No one driver is suitable for all scenarios
Storage drivers are always improving and innovating.
Keep these two points in mind and take a look at other aspects.
Stability (Stability)
Use the default drive of the linux distribution.
Generally speaking, the default drive is relatively stable, modified to non-default may encounter bug and so on.
Use experience (Experience and expertise)
Use what you are familiar with. For example, always use centos, more familiar with LVM and Device Mapper, it is better to use devicemapper. It is better to use aufs if you are familiar with ubuntu.
Foresight (Future-proofing)
Many people think that OverlayFS is the future docker storage drive. But there may be more bug than aufs and devicemapper,overlay are not stable, so be careful when using them.
At this point, I believe you have a deeper understanding of "how to choose a docker storage drive". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 293
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.