上周遇到了MTU导致的Docker镜像拉取失败,这次又遇到了奇怪的情况导致镜像拉取失败。

failed to register layer: Error processing tar file(exit status 1): open /etc/init.d/nginx: permission denied

百度搜了一下,找到了相关的文章,看到了关键字yunsuo,这才想起来公司早期的服务器是安装了这个管理软件的,当时就会引起各种权限问题。果断禁用了,然后一切正常。因为这,我耗费了一整个晚上的时间。累觉不爱,赶紧卸载。

以下是centos下禁用yunsuo的命令

sudo /sbin/chkconfig yunsuo off
sudo /sbin/chkconfig yunsuo_guard off

参考文章