Goodbye Docker on CentOS, Hello Ubuntu
linux-toys.com
Goodbye Docker on CentOS, Hello Ubuntu
1–10 of 42 posts
Re: Goodbye Docker on CentOS, Hello Ubuntu
#2Re: Goodbye Docker on CentOS, Hello Ubuntu
#3Any chance you can link to a "getting started" docker on Ubuntu writeup?
Re: Goodbye Docker on CentOS, Hello Ubuntu
#4Re: Goodbye Docker on CentOS, Hello Ubuntu
#5I 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
#6Overlay(fs) is likely going to be the way forward.
Re: Goodbye Docker on CentOS, Hello Ubuntu
#7https://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
#8RHEL, 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
#9CentOS 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
#10Any chance you can link to a "getting started" docker on Ubuntu writeup?