Unable to switch filesystem to overlay in Docker in Ubuntu

0 votes

I'm using vagrant to run docker with ubuntu on my mac. Im the root user and am trying to switch from devicemapper to overlay but this comes up:

root@vagrant-ubuntu-trusty-64:/# service docker stop
docker stop/waiting
root@vagrant-ubuntu-trusty-64:/# rm -rf /var/lib/docker
root@vagrant-ubuntu-trusty-64:/# docker daemon -s overlay
Command "daemon" is deprecated, and will be removed in Docker 1.16. Please run `dockerd` directly.
INFO[0000] libcontainerd: new containerd process, pid: 6788
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=4096
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
Error starting daemon: error initializing graphdriver: driver not supported
root@vagrant-ubuntu-trusty-64:/#

I followed this guide so far:

http://www.projectatomic.io/blog/2015/06/notes-on-fedora-centos-and-docker-storage-drivers/Unable to start Docker Service in Ubuntu 16.04

but this didn't seem to work for me. And if I try and follow the documentation:

https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/

Step 2 wont work because the grep won't return any 'overlay' from lsmod:

root@vagrant-ubuntu-trusty-64:/# uname -r
3.13.0-107-generic
root@vagrant-ubuntu-trusty-64:/# lsmod | grep overlay
root@vagrant-ubuntu-trusty-64:/#


root@vagrant-ubuntu-trusty-64:/# dockerd --storage-driver=overlay
INFO[0000] libcontainerd: new containerd process, pid: 6816
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=4096
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
Error starting daemon: error initializing graphdriver: driver not supported
root@vagrant-ubuntu-trusty-64:/#

What should I be doing different?

Jul 18, 2018 in Docker by DragonLord999
• 8,450 points
2,485 views

1 answer to this question.

0 votes

From the official docs: https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlayoverlay2-storage-driver

To configure Docker to use the overlay storage driver your Docker host must be running version 3.18 of the Linux kernel (preferably newer) with the overlay kernel module loaded. For the overlay2 driver, the version of your kernel must be 4.0 or newer.

Your problem is your kernel version being 3.13. You should backup your virtual machine and upgrade you VM kernel to a newer version or simply upgrade your ubuntu VM to 16.04.

answered Jul 18, 2018 by ajs3033
• 7,300 points

Related Questions In Docker

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to switch to another host in Docker Toolbox?

Hi@akhtar, You can change the host from your ...READ MORE

answered Dec 21, 2020 in Docker by MD
• 95,440 points
439 views
0 votes
2 answers
+2 votes
1 answer
0 votes
1 answer
0 votes
2 answers

Can't access apache karaf docker container

To access karaf shell directly you can ...READ MORE

answered Aug 6, 2018 in Docker by Nilesh
• 7,050 points
2,079 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP