unicom-task icon indicating copy to clipboard operation
unicom-task copied to clipboard

arm的机器用不了

Open cutecat1314 opened this issue 3 years ago • 7 comments

可以编译一个arm的docker吗

cutecat1314 avatar Jun 24 '21 01:06 cutecat1314

可以编译一个arm的docker吗

有什么报错信息吗?

srcrs avatar Jun 25 '21 13:06 srcrs

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 可以创建容器,但是容器启动不了,求大佬解决一下

cutecat1314 avatar Jun 25 '21 14:06 cutecat1314

同,测试环境n1 openwrt 无法启动

wingswing avatar Jun 26 '21 16:06 wingswing

也是N1 openwrt,启动不起来,报错如下: standard_init_linux.go:211: exec user process caused "exec format error"

b08240 avatar Jun 27 '21 12:06 b08240

那就抛掉docker,直接运行? crontab

30 6 * * * /root/start.sh > /var/log/cron-task.log 2>&1
00 5 * * * /root/pull.sh > /var/log/cron-pull.log 2>&1

start.sh

# !/usr/bin/bash

rm /root/UnicomTask-docker/config.json
cp /root/config.json /root/UnicomTask-docker/
cd /root/UnicomTask-docker                                                                python3 index.py

pull.sh

# !/usr/bin/bash

DIR='unicom-cache'
cd /root
#拉取最新代码
git clone git://github.com/srcrs/UnicomTask-docker.git $DIR
if [ "$(ls -A $DIR)" ]; then
  rm -rf ./UnicomTask-docker
  mv unicom-cache UnicomTask-docker
else
echo "$DIR is Empty"
rm -rf ./unicom-cache                                                                     fi

w311ang avatar Jul 13 '21 00:07 w311ang

使用这个镜像 https://hub.docker.com/r/dellear/unicom-task

Dellear avatar Jul 25 '21 10:07 Dellear

使用这个镜像 https://hub.docker.com/r/dellear/unicom-task

感谢,已经安装好了,马上试用。

s1sunny avatar Sep 18 '21 03:09 s1sunny