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