docker 装置-装载被屏蔽

0vvn1miw  于 2023-02-07  发布在  Docker
关注(0)|答案(1)|浏览(243)

当我想重新启动docker.service或启动rabbitmq-server服务(可能还有其他一些服务)时,它会说:
Failed to start "the service" : Unit -.mount is masked
我该怎么做才能修好它?
我读了this,但我不认为这是一个解决方案,顺便说一下,这里是/lib/systemd/system中的屏蔽服务:

(venv) root@debian:~# ls -l /lib/systemd/system | grep null | awk '{print $9,$10,$11}'
bootlogd.service -> /dev/null
bootlogs.service -> /dev/null
bootmisc.service -> /dev/null
checkfs.service -> /dev/null
checkroot-bootclean.service -> /dev/null
checkroot.service -> /dev/null
cryptdisks-early.service -> /dev/null
cryptdisks.service -> /dev/null
halt.service -> /dev/null
hostname.service -> /dev/null
hwclock.service -> /dev/null
killprocs.service -> /dev/null
motd.service -> /dev/null
mountall-bootclean.service -> /dev/null
mountall.service -> /dev/null
mountdevsubfs.service -> /dev/null
mountkernfs.service -> /dev/null
mountnfs-bootclean.service -> /dev/null
mountnfs.service -> /dev/null
rc.service -> /dev/null
rcS.service -> /dev/null
reboot.service -> /dev/null
rmnologin.service -> /dev/null
sendsigs.service -> /dev/null
single.service -> /dev/null
stop-bootlogd.service -> /dev/null
stop-bootlogd-single.service -> /dev/null
sudo.service -> /dev/null
umountfs.service -> /dev/null
umountnfs.service -> /dev/null
umountroot.service -> /dev/null
x11-common.service -> /dev/null

我已经尝试了这些解决方案,但只是不工作。

(venv) root@debian:~# sudo systemctl restart docker.service
Failed to restart docker.service: Unit -.mount is masked.
(venv) root@debian:~# sudo systemctl restart docker.service
Failed to restart docker.service: Unit -.mount is masked.
(venv) root@debian:~# sudo systemctl start rabbitmq-server.service
Failed to start rabbitmq-server.service: Unit -.mount is masked.
(venv) root@debian:~# sudo systemctl unmask -.mount
systemctl: invalid option -- '.'
Hint: to specify units starting with a dash, use "--":
      systemctl [OPTIONS...] {COMMAND} -- -.mount ...
(venv) root@debian:~# sudo systemctl unmask -- -.mount
(venv) root@debian:~# sudo systemctl start rabbitmq-server.service
Failed to start rabbitmq-server.service: Unit -.mount is masked.

如果需要任何其他信息,请让我知道

s3fp2yjn

s3fp2yjn1#

root@etcnode01:~# sudo service docker start
Failed to start docker.service: Unit docker.service is masked.

是的,我也遇到了同样的问题,我想是重复安装造成的,尽量消除它

相关问题