Docker错误,只读文件系统未知

6ss1mwsb  于 2022-11-03  发布在  Docker
关注(0)|答案(3)|浏览(455)

我正在使用Windows 10 x64并刚下载了Docker,我尝试运行一个简单的“hello-world”dockerfile,但我一直得到:
docker: Error response from daemon: error creating temporary lease: file resize error: truncate /var/lib/desktop-containerd/daemon/io.containerd.metadata.v1.bolt/meta.db: read-only file system: unknown.
每次尝试时,我都得到相同的文件只读错误

rn0zuynd

rn0zuynd1#

如果我没记错的话,在清理空间和从头开始重新启动Docker对我来说很有效。

am46iovg

am46iovg2#

在windows上,打开Docker桌面,点击调试图标,然后重新启动。你也可以考虑“重置为出厂默认值”

uqdfh47h

uqdfh47h3#

我的情况下,原因是损坏的SSD。当你看到错误,检查dmesg。我的是残酷的:

[ 5395.061163] blk_update_request: I/O error, dev sdb, sector 18906376 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 5395.061166] Buffer I/O error on dev sdb2, logical block 2363041, async page read
[ 5395.061310] Aborting journal on device sdb2-8.
[ 5395.061315] EXT4-fs error (device sdb2) in ext4_reserve_inode_write:6000: Journal has aborted
[ 5395.065827] EXT4-fs error (device sdb2): ext4_journal_check_start:61: Detected aborted journal
[ 5395.065829] EXT4-fs (sdb2): Remounting filesystem read-only
[ 5395.067419] EXT4-fs error (device sdb2): ext4_journal_check_start:61: Detected aborted journal
[ 5395.067421] EXT4-fs error (device sdb2): mpage_map_and_submit_extent:2619: comm postgres: Failed to mark inode 2385447 dirty
[ 5395.067422] EXT4-fs (sdb2): ext4_writepages: jbd2_start: 9223372036854775803 pages, ino 14362621; err -30
[ 5395.202060] EXT4-fs error (device sdb2): ext4_journal_check_start:61: Detected aborted journal

相关问题