点击 OpenWRT web 管理界面左侧菜单栏 系统 —> TTY D终端,以管理员身份登录,然后执行命令拉取镜像报:
root@BleachWrt:~# docker pull homeassistant/home-assistant Using default tag: latest latest: Pulling from homeassistant/home-assistant 7264a8db6415: Pull complete f5cfbb34cf3c: Pull complete ... 7045b8fcb120: Downloading [==================================================>] 24.29MB/24.29MB e03287f90c0d: Waiting 8b51d8be7674: Waiting 9d7f1abe824a: Waiting write /opt/docker/tmp/GetImageBlob2773575291: no space left on device
解决方法:
1.使用 fdisk -l 查看磁盘大小及分区情况(可以很明显看到,存储设备大小默认是 8 G 的,但实际只是用了 1G 多一点,明显还有很多剩余空间):
root@BleachWrt:~# fdisk -l Disk /dev/loop0: 695.06 MiB, 728825856 bytes, 1423488 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes GPT PMBR size mismatch (2130463 != 16777215) will be corrected by write. The backup GPT table is corrupt, but the primary appears OK, so that will be used. The backup GPT table is not on the end of the device.
Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Disk model: Virtual disk Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 93182384-C5B0-4453-61E7-FF7E5FECB800
Device Start End Sectors Size Type /dev/sda1 512 33279 32768 16M Linux filesystem /dev/sda2 33280 2130431 2097152 1G Linux filesystem /dev/sda128 34 511 478 239K BIOS boot
Partition table entries are not in disk order.
2.使用 fdisk 将空闲空间划分出来分区:
root@BleachWrt:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.38.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
GPT PMBR size mismatch (2130463 != 16777215) will be corrected by write. The backup GPT table is corrupt, but the primary appears OK, so that will be used. The backup GPT table is not on the end of the device. This problem will be corrected by write. This disk is currently in use - repartitioning is probably a bad idea. It's recommended to umount all file systems, and swapoff all swap partitions on this disk. Command (m for help): n Partition number (3-127, default 3): First sector (2130432-16777182, default 2131968): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2131968-16777182, default 16775167): Created a new partition 3 of type 'Linux filesystem' and of size 7 GiB. Command (m for help): p Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Disk model: Virtual disk Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 93182384-C5B0-4453-61E7-FF7E5FECB800 Device Start End Sectors Size Type /dev/sda1 512 33279 32768 16M Linux filesystem /dev/sda2 33280 2130431 2097152 1G Linux filesystem /dev/sda3 2131968 16775167 14643200 7G Linux filesystem /dev/sda128 34 511 478 239K BIOS boot Partition table entries are not in disk order. Command (m for help): w The partition table has been altered. Syncing disks.
┌──(root㉿kali-desktop)-[~] └─# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 96378bd30447 homeassistant/home-assistant:latest "/init" 9 seconds ago Up 8 seconds hass