Docker image failing to yum install from epel


I have GitLab installed on a vm in my colo and another vm for gitlab-ci-multi-runner. Both guest OS’s are CentOS 7.3.1611 and both are running as expected. When I push to GitLab it triggers a build on the runner using the Docker executor. Works fine. Oh and the Docker image is centos:latest


After one or two successful builds the command yum install nodejs npm -y fails in Docker vm after trying every mirror failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try. And I see these Message from syslogd@gitlab-runner at Jan 16 09:28:35 ... kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 in my ssh session

Temp Workaround:

If I wait for “lo to become free” then I can run yum makecache on the runner guest (not in docker) and my next build with Docker will work correctly. A reboot also fixes it temporarily.


Why is the Docker machine clogging up the repo cache and failing?
What can I do to fix it more permanently than my current stupid workaround?

Thanks in advance! You’re beautiful :slight_smile: