电脑意外重启后虚拟机 Docker Application Container Engine - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
v2li32
V2EX    Docker

电脑意外重启后虚拟机 Docker Application Container Engine

  •  
  •   v2li32 2024-08-19 11:43:37 +08:00 1264 次点击
    这是一个创建于 469 天前的主题,其中的信息可能已经有所发展或是发生改变。

    查看错误信息

    journalctl -u docker.service Aug 13 05:39:10 ubuntu systemd[1]: docker.service: Failed with result 'exit-code'. Aug 13 05:39:10 ubuntu systemd[1]: Failed to start Docker Application Container Engine. 

    docker 服务器状态

    这里 restart docker 会卡住

    sudo systemctl status docker ubuntu@ubuntu:~$ sudo systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: activating (start) since Mon 2024-08-19 03:40:39 UTC; 20s ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Main PID: 3400 (dockerd) Tasks: 8 Memory: 22.8M CPU: 373ms CGroup: /system.slice/docker.service └─3400 /usr/bin/dockerd -H fd:// --cOntainerd=/run/containerd/containerd.sock Aug 19 03:40:39 ubuntu systemd[1]: Starting Docker Application Container Engine... Aug 19 03:40:39 ubuntu dockerd[3400]: time="2024-08-19T03:40:39.652035506Z" level=info msg="Starting up" Aug 19 03:40:39 ubuntu dockerd[3400]: time="2024-08-19T03:40:39.661294546Z" level=info msg="detected 127.0.0.53 nameserver, assuming systemd-resol> lines 1-15/15 (END) 

    现在解决方案 只能每次意外断电后卸载 docker,重新安装 docker...

    为什么会产生这种问题呢,更好的解决一下。 不然太难受了

    2 条回复    2024-08-19 15:04:41 +08:00
    yinmin
        1
    yinmin  
       2024-08-19 13:14:50 +08:00 via iPhone
    硬盘是用啥格式的? ext4 、btrfs ?
    v2li32
        2
    v2li32  
    OP
       2024-08-19 15:04:41 +08:00
    @yinmin win11 是 ntfs , 虚拟机是
    ```
    ubuntu@ubuntu:~$ hwinfo --disk
    49: SCSI 2000.0: 10600 Disk
    [Created at block.245]
    Unique ID: R7kM.nTPZhtpisM9
    Parent ID: 37TO.741NuwlerHD
    SysFS ID: /class/block/sda
    SysFS BusID: 32:0:0:0
    SysFS Device Link: /devices/pci0000:00/0000:00:10.0/host32/target32:0:0/32:0:0:0
    Hardware Class: disk
    Model: "VMware Virtual S"
    Vendor: "VMware,"
    Device: "VMware Virtual S"
    Revision: "1.0"
    Driver: "mptspi", "sd"
    Driver Modules: "mptspi"
    Device File: /dev/sda (/dev/sg1)
    Device Files: /dev/sda, /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0
    Device Number: block 8:0-8:15 (char 21:1)
    BIOS id: 0x80
    Drive status: no medium
    Config Status: cfg=new, avail=yes, need=no, active=unknown
    Attached to: #7 (SCSI storage controller)
    ```

    docker 是使用的默认的配置,没改过
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5231 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 08:23 PVG 16:23 LAX 00:23 JFK 03:23
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86