Docker Error Creating Overlay Mount To Invalid Argument

Docker Error Creating Overlay, If you’re facing an issue related to Docker storage driver type like “/usr/bin/docker-current: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/7e9da3eaf646f3060f2a6be2fe3e677207e75e49662dfaf04c5c02396106509d-init/merged: invalid argument.”. When you face error response from daemon and issue with docker devicemapper. By default, Docker Storage driver is Overlay2 which is recommended. 

Docker Error Creating Overlay Mount To Invalid Argument:

There are different types of Storage drivers available in Docker.

1. Overlay2: This predefined Storage driver and it supports all Operating Systems.

2. aufs: Preferable Storage Driver for Docker 18.06 and older. If you run it on Ubuntu 14.04 on Kernel 3.13 which has no support to overlay2.

Check Out: Troubleshoot Linux Server Performance Using vmstat Command

3. Device-mapper: This supported but requires direct-lvm for a production environment.

4. vfs: This Storage Driver basically used for testing purposes. It gives poor performance and can be used where no copy-on-write filesystem.

Check Out: Docker Service Start to Failed

What’s the solution to this?

First, you will need to find the Storage type of your docker installed on the machine.

Docker info

docker: error creating overlay mount invalid argument

You will have to troubleshoot with following commands until you don’t get resolve this issue.

Check Out: Check Running Container In Docker

You can also change the Backing filesystem from xfs to ext4. In most cases, it works.

Docker Error Creating Overlay

You can also try this to find the storage type. If ftype is 1, this supports overlay2

xfs_info /var/lib/docker/overlay2 | grep ftype

docker overlay2

In my case, it’s 0 and this does not support overlay2

Another way to find Storage driver type

Check Out: Take Backup of a Container In Docker

docker info | egrep '^(Server Version|Storage)'

overlay error in docker

After all these you still have this issue then you may define this code in file /etc/docker/daemon.json and restart the docker service

{ "storage-driver": "devicemapper" }{}

As Docker CE installed On Centos, Supports both devicemapper and vfs Storage driver.

Check Out: Install Rancher Server

Now I will try to install Rancher Server and it’s working.

error response from daemon

You’re done

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment