Windows 10 子系统安装 Docker 错误解决方法
在 Windows 10 子系统中安装 Docker 过程中,可能会遇到以下错误:
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
invoke-rc.d: unknown initscript, /etc/init.d/docker not found.
invoke-rc.d: could not determine current runlevel
Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
Setting up ubuntu-fan (0.12.13ubuntu0.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service → /lib/systemd/system/ubuntu-fan.service.
invoke-rc.d: could not determine current runlevel
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...
Failed to retrieve available kernel versions.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
User sessions running outdated binaries:
root @ /dev/pts/0: sh[827], su[183], zsh[184]
root @ /dev/tty1: init[8]
sgfoot @ /dev/tty1: zsh[9]
No VM guests are running outdated hypervisor (qemu) binaries on this host.
这个错误可能是由于系统更新失败导致的。可以尝试以下步骤来解决:
-
确认系统更新是否成功,如果失败了,可以尝试重新更新系统。
-
确认系统中是否已经安装了 Docker,如果已经安装了,可以尝试卸载并重新安装。
-
确认系统中是否已经安装了 'dnsmasq-base' 和 'ubuntu-fan',如果没有安装,可以尝试安装。
-
如果以上步骤都不能解决问题,可以尝试重启系统并重新安装 Docker。
原文地址: https://www.cveoy.top/t/topic/jJb8 著作权归作者所有。请勿转载和采集!