-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to overlay2 Docker storage driver #1380
Comments
Seems reasonable We should also enable AUFS kernel support for those who want to use that driver http://lists.busybox.net/pipermail/buildroot/2015-February/119409.html |
@r2d4 If enabling AUFS support is also an option maybe I should create a separate issue? I think that AUFS might be a noticeable stability and speed boost when compared to |
@jgoclawski Have you evaluated that overlay2 is good and stable for production on a public cloud, say, like AWS Linux?. Just curious to know. Also the evaluation should be done with Docker 1.13.6( Docker CE 17.0.6) this June 2017. |
@bklau no, we're using aufs in production. I have used overlay2 for development only - it was stable and with performance similar to aufs. |
Anyone having problems with inodes ("no space left on device") and/or slow performance when using many images, feel free to try running Docker 1.12 and
|
@jgoclawski it's a known issue. I think it's fixed with docker 1.13 ( 17.03.x) |
We should be able to update this now that kubernetes supports overlay2 |
@dlorenc Output when running newest iso:
Should we close this? |
SGTM |
Hi, Is there support switching to overlay2 from direct-lvm thinpool? The possible scenario would be |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
FEATURE REQUEST
Minikube version (use
minikube version
):minikube version: v0.17.1
Environment:
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): virtualboxcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): minikube-v1.0.6.isoWhat happened:
This proposal originates from problems encountered when using minikube during development. We're using minikube to build images and after some time we get errors like this:
Disk usage seems ok, so I guess there is a problem with inodes. Deleting unused images from previous build solves the problem for some time.
When investigating, I've found that by default Docker uses
overlayfs
as storage driver. It has known issues with using too much inodes. It's also noticeably slower thanaufs
, which works ok on my host system.One of the solutions to slow builds and extensive inodes usage would be to use
aufs
, but it requires building a kernel module. A simpler solution would be to useoverlayfs2
.https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/
Quoting the docs:
"Overlay vs Overlay2" - https://docs.docker.com/engine/userguide/storagedriver/selectadriver/#overlay-vs-overlay2
Proposal:
overlay2
)overlay
tooverlay2
as storage driverI've seen that you consdered updating Docker to 1.12 (#435), but evetnaully decided not to do so, referencing Kubernetes 1.4. As of now, Kubernetes 1.6 claims to support Docker 1.12.6 (https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md#v160).
So maybe you could reconsider updating Docker to 1.12?
Then you could switch to
overlay2
or at least allow people to switch themselves. Right now, it's not possible to useoverlay2
because of old Docker version 1.11.The text was updated successfully, but these errors were encountered: