Troubleshooting Docker Boot errors Error creating overlay Mount To/var/lib/docker/overlay2

Source: Internet
Author: User

Original

Recently running a Redis image in centos7.1 using Docker, the following error occurred:

/usr/bin/docker-current: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/65f3c109fb903539820f84856d2725af784f2f03f95b1f0214e34184e4d61ff7-init/merged: invalid argument.See ‘/usr/bin/docker-current run --help‘.

After searching on the internet, a feasible scheme is as follows (change storage driver type, disable SELinux):

Stop the Docker service

systemctl stop docker

Cleaning up the mirror

rm -rf /var/lib/docker

modifying storage types

vi /etc/sysconfig/docker-storage

Change the empty docker_storage_options parameter to overlay:

DOCKER_STORAGE_OPTIONS="--storage-driver overlay"

Disable SELinux

vi /etc/sysconfig/docker

Remove option from –selinux-enabled

You should start Docker.

systemctl start docker

The program was copied from Ysssssssssssssss's blog and the Redis discussion: Error creating overlay mount to .../merged:invalid argument., basically you can determine that SELinux is enabled.

Troubleshooting Docker Boot errors Error creating overlay Mount To/var/lib/docker/overlay2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.