OS X Docker 'Directory renamed before its status could be extracted' 的解决方法

Workaround for OS X Docker 'Directory renamed before its status could be extracted'

在 OS X 10.14.5 上使用 Docker 桌面社区 2.0.0.3,我已经 tar 制作了一个 ubuntu 图像,里面是 运行 一些 arm 交叉编译器的安装程序。这会导致大量错误,例如:

tar: ./sysroots/cortexa9hf-neon-poky-linux-gnueabi/etc: Directory renamed before its status could be extracted

一些谷歌搜索表明这是一个常见的 Docker 错误,解决此问题的方法是 change the storage driver, e.g. to aufs, but when I try this on a Mac, docker fails to start, with an error referencing graphdriver. And indeed the Docker documentation 表明 Mac 不支持更改存储驱动程序。

有没有人找到解决此 tar 错误的方法?

最后我通过

解决了这个问题