免费推广网站视频做网站有什么必要
这里写目录标题
- 1、参考
 - 2、alpine-term-v16.0-release.apk下载安装
 - 3、电脑端ssh连接
 - 3、安装docker
 - 3.1 网络配置
 - 3.2 配置APK源
 
1、参考
【Docker与Termux】闲置旧安卓手机上的NAS无缝部署方案 https://blog.csdn.net/AnRanGeSi/article/details/138717589
【Alpine Term】Android免root本地运行Docker https://www.jianshu.com/p/55456c1ca794
【Docker与Termux】闲置旧安卓手机上的NAS无缝部署方案 https://www.yxzhi.cn/post/268168.html
2、alpine-term-v16.0-release.apk下载安装
alpine-term-v16.0-release.apk下载:Githuh:https://github.com/FakeRajbhx/alpine-term/
开机后,登录系统,用户 alpine 密码: alpine
然后切换到root账户,输入sudo -s 密码:alpine
如果想要修改root密码, 输入 passwd ,需要输入两次新密码。


3、电脑端ssh连接
Qemu套娃,所以需要映射ssh的22端口,开机完成后,手指在软件的左上方向右滑,会出现菜单,如下图所示;然后映射ssh的22端口到手机的2222端口,选择 [1]QEMU,输入hostfwd_add tcp::8022-:22;查看路由器连接ip地址链接ssh root@ip -p 8022

 
3、安装docker
3.1 网络配置
vi /etc/network/interfaces
 
auto lo  
iface lo inet loopback  
auto eth0  
iface eth0 inet dhcp
 
/etc/init.d/networking restartvi /etc/resolv.conf
 
nameserver 8.8.8.8
nameserver 8.8.4.4
 
3.2 配置APK源
查看系统版本:
cat /etc/alpine-release
Alpine安装Docker
https://mirrors.ustc.edu.cn/help/alpine.html
 /etc/apk/repositories源
# Main package repositories.
#http://mirrors.aliyun.com/alpine/edge/main
#http://mirrors.aliyun.com/alpine/edge/community
http://mirrors.ustc.edu.cn/alpine/v3.20/main
http://mirrors.ustc.edu.cn/alpine/v3.20/community# Testing repository.
# You can install packages from this repository with:
# apk add package@testing
@testing http://mirrors.aliyun.com/alpine/edge/testing
 
阿里和科大源不行,其他源试试:
https://mirror.reenigne.net/alpine/edge/community/
https://mirror.reenigne.net/alpine/edge/main/
https://mirror.reenigne.net/alpine/edge/testing/https://mirror.reenigne.net/alpine/v3.19/main/
https://mirror.reenigne.net/alpine/v3.19/community/
