找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1224|回复: 11

[N1盒子] 求助安装可道云安装到挂载硬盘

[复制链接]
发表于 2020-2-19 10:58 | 显示全部楼层 |阅读模式
这个可以正常安装
  • docker run -d \
  •   --name  kdcloud \
  •   -p 1000:80 \
  •   --restart=always \
  •   -v /docker/kdcloud:/var/www/html \
  •   lstcml/n1_kodcloud

无法挂载硬盘   
这是挂载的硬盘
root@aml:~# fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 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
Disklabel type: dos
Disk identifier: 0x83760000

Device         Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk1p1      1368064  1617919   249856  122M  c W95 FAT32 (LBA)
/dev/mmcblk1p2      1619968 15269887 13649920  6.5G 83 Linux


Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model:                 
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: dos
Disk identifier: 0x81d53ab1

Device     Boot Start        End    Sectors   Size Id Type
/dev/sda1  *     2048 1953523711 1953521664 931.5G 83 Linux


Disk /dev/zram0: 50 MiB, 52428800 bytes, 12800 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram1: 903.1 MiB, 946987008 bytes, 231198 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
如何才能挂载到硬盘内呢

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-2-19 12:07 | 显示全部楼层
求解决 彦祖们
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-19 12:16 | 显示全部楼层
之前尝试未果,还是用回固件自带的可道云,可以装到usb

点评

df -h 查看挂载目录 看后边的目录就是真实的目录 可以安装成功  详情 回复 发表于 2020-2-20 21:36
路由器自带的?  详情 回复 发表于 2020-2-19 13:13
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-19 13:13 | 显示全部楼层
545347837 发表于 2020-2-19 12:16
之前尝试未果,还是用回固件自带的可道云,可以装到usb

路由器自带的?

点评

固件里带的我刷进去 我不是有两个N1 想刷到OMV里  详情 回复 发表于 2020-2-19 16:26
固件里带的我刷进去 我不是有两个N1 想刷到OMV里  详情 回复 发表于 2020-2-19 16:26
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-19 14:52 | 显示全部楼层
黯然神伤 发表于 2020-2-19 13:13
路由器自带的?

n1 op固件里面有带
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-19 15:16 | 显示全部楼层
  -v /docker/kdcloud:/var/www/html \  这里容易映射目录 /docker/kdcloud 改成你移动硬盘路径不就可以了吗?

点评

Status: Downloaded newer image for lstcml/n1_kodcloud:latest 5aa8ef759a94656381fbe95ac2ec2c508177c44542cc4198c4b15d103ae9a372 docker: Error response from daemon: OCI runtime create failed: container  详情 回复 发表于 2020-2-19 16:27
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-19 16:26 | 显示全部楼层

固件里带的我刷进去 我不是有两个N1   想刷到OMV里
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-19 16:26 | 显示全部楼层

固件里带的我刷进去 我不是有两个N1   想刷到OMV里
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-19 16:27 | 显示全部楼层
epaygps 发表于 2020-2-19 15:16
-v /docker/kdcloud:/var/www/html \  这里容易映射目录 /docker/kdcloud 改成你移动硬盘路径不就可以了 ...

Status: Downloaded newer image for lstcml/n1_kodcloud:latest
5aa8ef759a94656381fbe95ac2ec2c508177c44542cc4198c4b15d103ae9a372
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/dev/sda\\\" to rootfs \\\"/var/lib/docker/overlay2/c48da89d9a7028e912286b02e8ed2a4ed9317dcd2193e8c2660baa78bab1d727/merged\\\" at \\\"/var/lib/docker/overlay2/c48da89d9a7028e912286b02e8ed2a4ed9317dcd2193e8c2660baa78bab1d727/merged/var/www/html\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
root@aml:~#
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-20 21:36 | 显示全部楼层
545347837 发表于 2020-2-19 12:16
之前尝试未果,还是用回固件自带的可道云,可以装到usb

df -h   查看挂载目录  
  看后边的目录就是真实的目录  可以安装成功
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-21 09:45 | 显示全部楼层
黯然神伤 发表于 2020-2-20 21:36
df -h   查看挂载目录  
  看后边的目录就是真实的目录  可以安装成功

你是说docker可以把目录指到u盘目录?只要写的路径是真实的路径么 就是mnt开头那个

点评

-v /sharedfolders/A1/docker/kdcloud:/var/www/html \ 这个是我的路径 并不是我挂载里显示的路径  详情 回复 发表于 2020-2-21 10:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-2-21 10:40 | 显示全部楼层
545347837 发表于 2020-2-21 09:45
你是说docker可以把目录指到u盘目录?只要写的路径是真实的路径么 就是mnt开头那个

-v /sharedfolders/A1/docker/kdcloud:/var/www/html \


这个是我的路径    并不是我挂载里显示的路径
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 01:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表