简体   繁体   中英

What is the difference between AUFS and devicemapper in docker?

When docker was introduced a big hype was made about docker using AUFS, allowing two different docker containers to use the same underlying layers, and thus reducing some of the overhead. Docker now seems to prefer devicemapper (eg default in Ubuntu 14.04). Does devicemapper provide the same functionality, or did people figure out that the advantages are not too big using AUFS ?

This article details the differences between the storage backends available to docker. Devicemapper support was implemented since AUFS is not included in the kernel and thus was only available on systems (such as Ubuntu) that provided it. Because of this it is generally not recommended in production environments.

No, devicemapper does not provide the same functionality -- it's much, much slower; since it operates at the block-device layer, it needs to deal with mounting, unmounting, fsck'ing, etc.

The reason it's widely used is that many distributions' kernels do not support AUFS. However, if you can use AUFS, you probably should .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM