英文:
Error after moving Docker's dir to NTFS: overlayfs: upper fs does not support <xxx>
问题
我尝试将我的Docker目录从/var/lib/docker
移动到一个格式化为NTFS的外部硬盘,我已经按照这个指南进行了操作。然而,当我运行systemctl start docker
时,出现错误,并在日志中找到以下内容:
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support tmpfile.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support RENAME_WHITEOUT.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs missing required features.
Jun 15 11:38:32 lampo.sial dockerd[7728]: time="2023-06-15T11:38:32.910051824+01:00" level=error msg="failed to mount overlay: invalid argument" storage-driver=overlay2
Jun 15 11:38:32 lampo.sial dockerd[7728]: time="2023-06-15T11:38:32.910356041+01:00" level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported"
Jun 15 11:38:32 lampo.sial dockerd[7728]: failed to start daemon: error initializing graphdriver: driver not supported
我怀疑是否可以将该文件夹移动到NTFS文件系统。我该怎么办?
英文:
I've tried to move my Docker's directory from /var/lib/docker
to an external hard drive, which is formatted with NTFS. I've followed this guide. However, when I do systemctl start docker
I get an error, and in the journal I find these:
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support tmpfile.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs does not support RENAME_WHITEOUT.
Jun 15 11:38:32 lampo.sial kernel: overlayfs: upper fs missing required features.
Jun 15 11:38:32 lampo.sial dockerd[7728]: time="2023-06-15T11:38:32.910051824+01:00" level=error msg="failed to mount overlay: invalid argument" storage-driver=overlay2
Jun 15 11:38:32 lampo.sial dockerd[7728]: time="2023-06-15T11:38:32.910356041+01:00" level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported"
Jun 15 11:38:32 lampo.sial dockerd[7728]: failed to start daemon: error initializing graphdriver: driver not supported
I'm doubting whether I can move that folder to an NTFS filesystem. What can I do?
答案1
得分: 1
看起来您正在使用不支持的OverlayFS存储驱动的文件系统。请查看每个存储驱动程序支持的文件系统。
所以,首先,请使用 df -h
命令检索您正在使用的文件系统。
然后,您有两个选项:
- 从文件
/etc/docker/daemon.json
更改Docker存储驱动程序,并使用支持的存储驱动程序。 - 更改您操作系统中使用的文件系统,以支持OverlayFS作为存储驱动程序。
英文:
It seems your are using a not supported filesystem for the OverlayFS storage driver. Please, have a look of the support filesystem for each storage driver
So, first, retrieve your the filesystem you're using with df -h
.
Then, you have 2 options:
- change the Docker storage-driver from the file
/etc/docker/daemon.json
and use a supported one - change the filesystem used in your OS to one that will support OverlayFS as storage-driver
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论