Live data from Hacker News

Goodbye Docker on CentOS, Hello Ubuntu

linux-toys.com

1–10 of 42 posts

Re: Goodbye Docker on CentOS, Hello Ubuntu

#4
I haven't used AUFS or overlay(fs), only devicemapper (thin provisioning) and Btrfs. Btrfs is faster than devicemapper, but even creating and removing containers seems slower than it ought to be considering how little delta there is. The create/remove time with 'btrfs sub crea/del' is much faster than docker create or remove (container), so I'm not really sure where the delays are.

Re: Goodbye Docker on CentOS, Hello Ubuntu

#5
post #4

I haven't used AUFS or overlay(fs), only devicemapper (thin provisioning) and Btrfs. Btrfs is faster than devicemapper, but even creating and removing containers seems slower than it ought to be considering how little delta there is. The create/remove time with 'btrfs sub crea/del' is much faster than docker create or remove (container), so I'm not really sure where the delays are.

Good comment. Did you try on CentOS or Ubuntu?

Re: Goodbye Docker on CentOS, Hello Ubuntu

#7
You can find some notes on tuning devicemapper here:

https://jpetazzo.github.io/assets/2015-03-03-not-so-deep-div...

If you've got a new enough kernel though (i.e. 3.18+), you're best off using Overlay for your storage driver. It's fast and doesn't require a lot of tuning.

Re: Goodbye Docker on CentOS, Hello Ubuntu

#8
By default, Docker will use the AUFS storage backend if available, and then fall back to devicemapper on loopback.

RHEL, CentOS, and Fedora do not ship the AUFS kernel module because it is not part of the mainline Linux kernel and is unlikely to be included in future, and these distros have an "upstream first, no out-of-tree bits" policy. Instead, they recommend using devicemapper on LVM [1][2].

The same advice is provided in the official Docker documentation [3]:

> Docker hosts running the devicemapper storage driver default to a configuration mode known as loop-lvm... The mode is designed to work out-of-the-box with no additional configuration. However, production deployments should not run under loop-lvm mode... The preferred configuration for production deployments is direct lvm.

You might consider using CentOS Atomic Host, which comes preconfigured with LVM thin pools.

OverlayFS is also an alternative, but it can be problematic. It only implements a subset of the POSIX standard [4], which can cause some programs to fail.

[1] http://www.projectatomic.io/blog/2015/06/notes-on-fedora-cen... [2] https://access.redhat.com/documentation/en/red-hat-enterpris... [3] https://docs.docker.com/engine/userguide/storagedriver/devic... [4] https://docs.docker.com/engine/userguide/storagedriver/overl...

Re: Goodbye Docker on CentOS, Hello Ubuntu

#9
From the op: "I enjoyed its minimal install to create a light environment, intuitive installation process, and it’s package manager."

CentOS is neither minimal nor light. Ubuntu also isn't either of these things. Both of these distributions are more targeted towards convenience and ease of use, which means a lot of features/services that are generally unnecessary are enabled by default. The main reasons to use CentOS is compatibility with proprietary software made for RHEL, Ubuntu for people already familiar with its desktop version, or if needing to buy enterprise support for either.

If the op is primarily looking for minimal and light, he should look at pretty much any other major popular Linux distribution like Debian proper, Slackware, or Gentoo before CentOS or Ubuntu.

Re: Goodbye Docker on CentOS, Hello Ubuntu

#10
post #2

Any chance you can link to a "getting started" docker on Ubuntu writeup?

This one was posted on HN a few days ago. Not specifically Ubuntu-related, but includes Ubuntu. Also aimed at EC2 rather than DO, however one imagines the ideas behind a fully portable ersatz VM approach are, well, fully portable.

https://news.ycombinator.com/item?id=10890233

Post reply on HN