Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker启动不了,初始化脚本有问题吗 #19

Closed
shanzhaozhen opened this issue Jan 9, 2020 · 14 comments
Closed

docker启动不了,初始化脚本有问题吗 #19

shanzhaozhen opened this issue Jan 9, 2020 · 14 comments

Comments

@shanzhaozhen
Copy link

查看日志显示这个错误,初始化脚本有问题吗? standard_init_linux.go:211: exec user process caused "exec format error"

@SuperNG6
Copy link
Owner

SuperNG6 commented Jan 9, 2020 via email

@shanzhaozhen
Copy link
Author

目前使用的用户是NAS,组是Docker,应该没错,我其他容器也能正常运行创建文件,现在aria2也有自动创建文件了,但是appdata上面没有conf文件
image
我的运行命令
docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/appdata/config:/config -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2

@SuperNG6
Copy link
Owner

SuperNG6 commented Jan 9, 2020 via email

@shanzhaozhen
Copy link
Author

是conf所在文件夹的权限问题,用chown -r 把根文件夹的所有者改了 Master God notifications@github.com于2020年1月9日 周四下午9:59写道:

目前使用的用户是NAS,组是Docker,应该没错,我其他容器也能正常运行创建文件,现在aria2也有自动创建文件了,但是appdata上面没有conf文件 [image: image] https://user-images.githubusercontent.com/29800728/72073480-f927ce80-332a-11ea-9d41-101d56fd1983.png 我的运行命令 docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/appdata/config:/config -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19?email_source=notifications&email_token=AG2C73UDPOY4G2XFP25UD5TQ44USLA5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQMMZY#issuecomment-572573287>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TZKMQLQZHVRTU4QKDQ44USLANCNFSM4KEYRLWQ .

现在将用户名和组都更换成root(0)都不行

@shanzhaozhen
Copy link
Author

是否需要自己创建配置文件才可以运行

@SuperNG6
Copy link
Owner

SuperNG6 commented Jan 9, 2020 via email

@shanzhaozhen
Copy link
Author

不需要,测试一下不挂载config目录,看看能否启动,让conf文件只存在于容器内 Master God notifications@github.com于2020年1月9日 周四下午10:18写道:

是否需要自己创建配置文件才可以运行 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19?email_source=notifications&email_token=AG2C73T4267Q2NSVDFKN5XTQ44W35A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQOJPQ#issuecomment-572581054>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TUDIKF7ZIXPHR7J6TQ44W35ANCNFSM4KEYRLWQ .

真是绝望还是不行
docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2

@SuperNG6
Copy link
Owner

SuperNG6 commented Jan 9, 2020 via email

@shanzhaozhen
Copy link
Author

我明天再排查一下,我这边一切正常,是不是只创立容器没有运行?docker run不 -d 的启动日志截图一下,不挂载文件夹 Master God notifications@github.com于2020年1月9日 周四下午10:30写道:

不需要,测试一下不挂载config目录,看看能否启动,让conf文件只存在于容器内 Master God @.***于2020年1月9日 周四下午10:18写道: … <#m_-4015581991603271519_> 是否需要自己创建配置文件才可以运行 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19>?email_source=notifications&email_token=AG2C73T4267Q2NSVDFKN5XTQ44W35A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQOJPQ#issuecomment-572581054>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TUDIKF7ZIXPHR7J6TQ44W35ANCNFSM4KEYRLWQ . 真是绝望还是不行 docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19?email_source=notifications&email_token=AG2C73SPDG6W5VJABOUDS5TQ44YKDA5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQPTOA#issuecomment-572586424>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73WQ44I47ZWNGG22233Q44YKDANCNFSM4KEYRLWQ .

image

@SuperNG6
Copy link
Owner

SuperNG6 commented Jan 9, 2020 via email

@shanzhaozhen
Copy link
Author

只运行这个命令 docker run superng6/aria2 Master God notifications@github.com于2020年1月9日 周四下午10:37写道:

我明天再排查一下,我这边一切正常,是不是只创立容器没有运行?docker run不 -d 的启动日志截图一下,不挂载文件夹 Master God @.***于2020年1月9日 周四下午10:30写道: … <#m_-2035699658029994826_> 不需要,测试一下不挂载config目录,看看能否启动,让conf文件只存在于容器内 Master God @.***于2020年1月9日 周四下午10:18写道: … <#m_-4015581991603271519_> 是否需要自己创建配置文件才可以运行 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19> <#19 <#19>>?email_source=notifications&email_token=AG2C73T4267Q2NSVDFKN5XTQ44W35A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQOJPQ#issuecomment-572581054>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TUDIKF7ZIXPHR7J6TQ44W35ANCNFSM4KEYRLWQ . 真是绝望还是不行 docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19>?email_source=notifications&email_token=AG2C73SPDG6W5VJABOUDS5TQ44YKDA5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQPTOA#issuecomment-572586424>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73WQ44I47ZWNGG22233Q44YKDANCNFSM4KEYRLWQ . [image: image] https://user-images.githubusercontent.com/29800728/72076497-90435500-3330-11ea-8760-55912cc8a13f.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19?email_source=notifications&email_token=AG2C73TITF3MOVPU7ESYVBLQ44ZC5A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQQJWI#issuecomment-572589273>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73QFEDVGZEGUTY3PNA3Q44ZC5ANCNFSM4KEYRLWQ .

只运行这个命令 docker run superng6/aria2 Master God notifications@github.com于2020年1月9日 周四下午10:37写道:

我明天再排查一下,我这边一切正常,是不是只创立容器没有运行?docker run不 -d 的启动日志截图一下,不挂载文件夹 Master God @.***于2020年1月9日 周四下午10:30写道: … <#m_-2035699658029994826_> 不需要,测试一下不挂载config目录,看看能否启动,让conf文件只存在于容器内 Master God @.***于2020年1月9日 周四下午10:18写道: … <#m_-4015581991603271519_> 是否需要自己创建配置文件才可以运行 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19> <#19 <#19>>?email_source=notifications&email_token=AG2C73T4267Q2NSVDFKN5XTQ44W35A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQOJPQ#issuecomment-572581054>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TUDIKF7ZIXPHR7J6TQ44W35ANCNFSM4KEYRLWQ . 真是绝望还是不行 docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19>?email_source=notifications&email_token=AG2C73SPDG6W5VJABOUDS5TQ44YKDA5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQPTOA#issuecomment-572586424>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73WQ44I47ZWNGG22233Q44YKDANCNFSM4KEYRLWQ . [image: image] https://user-images.githubusercontent.com/29800728/72076497-90435500-3330-11ea-8760-55912cc8a13f.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19?email_source=notifications&email_token=AG2C73TITF3MOVPU7ESYVBLQ44ZC5A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQQJWI#issuecomment-572589273>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73QFEDVGZEGUTY3PNA3Q44ZC5ANCNFSM4KEYRLWQ .

是不是不支持我的CPU,我用的是斐讯的N1盒子,cpu是arm,系统是armbian(debian9)
root@NAS:~# docker run superng6/aria2 standard_init_linux.go:211: exec user process caused "exec format error"
图片发不出来

@SuperNG6
Copy link
Owner

SuperNG6 commented Jan 9, 2020 via email

@SuperNG6
Copy link
Owner

SuperNG6 commented Jan 9, 2020 via email

@shanzhaozhen
Copy link
Author

暂时只支持x86_64,docker buildx我还不太会用 Master God notifications@github.com于2020年1月9日 周四下午10:45写道:

只运行这个命令 docker run superng6/aria2 Master God @.***于2020年1月9日 周四下午10:37写道: … <#m_-6898533535707467835_> 我明天再排查一下,我这边一切正常,是不是只创立容器没有运行?docker run不 -d 的启动日志截图一下,不挂载文件夹 Master God @.***于2020年1月9日 周四下午10:30写道: … <#m_-2035699658029994826_> 不需要,测试一下不挂载config目录,看看能否启动,让conf文件只存在于容器内 Master God @.***于2020年1月9日 周四下午10:18写道: … <#m_-4015581991603271519_> 是否需要自己创建配置文件才可以运行 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19> <#19 <#19>> <#19 <#19> <#19 <#19>>>?email_source=notifications&email_token=AG2C73T4267Q2NSVDFKN5XTQ44W35A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQOJPQ#issuecomment-572581054>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TUDIKF7ZIXPHR7J6TQ44W35ANCNFSM4KEYRLWQ . 真是绝望还是不行 docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19> <#19 <#19>>?email_source=notifications&email_token=AG2C73SPDG6W5VJABOUDS5TQ44YKDA5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQPTOA#issuecomment-572586424>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73WQ44I47ZWNGG22233Q44YKDANCNFSM4KEYRLWQ . [image: image] https://user-images.githubusercontent.com/29800728/72076497-90435500-3330-11ea-8760-55912cc8a13f.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19>?email_source=notifications&email_token=AG2C73TITF3MOVPU7ESYVBLQ44ZC5A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQQJWI#issuecomment-572589273>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73QFEDVGZEGUTY3PNA3Q44ZC5ANCNFSM4KEYRLWQ . 只运行这个命令 docker run superng6/aria2 Master God @.***于2020年1月9日 周四下午10:37写道: … <#m_-6898533535707467835_> 我明天再排查一下,我这边一切正常,是不是只创立容器没有运行?docker run不 -d 的启动日志截图一下,不挂载文件夹 Master God @.***于2020年1月9日 周四下午10:30写道: … <#m_-2035699658029994826_> 不需要,测试一下不挂载config目录,看看能否启动,让conf文件只存在于容器内 Master God @.***于2020年1月9日 周四下午10:18写道: … <#m_-4015581991603271519_> 是否需要自己创建配置文件才可以运行 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19> <#19 <#19>> <#19 <#19> <#19 <#19>>>?email_source=notifications&email_token=AG2C73T4267Q2NSVDFKN5XTQ44W35A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQOJPQ#issuecomment-572581054>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TUDIKF7ZIXPHR7J6TQ44W35ANCNFSM4KEYRLWQ . 真是绝望还是不行 docker create --name=aria2 -e PUID=1000 -e PGID=996 -e TZ=Asia/Shanghai -e SECRET=master -e UpdateTracker=true -p 6881:6881 -p 6881:6881/udp -p 6800:6800 -v /mnt/disk/soft/aria2/downloads:/downloads --restart unless-stopped superng6/aria2 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19> <#19 <#19>>?email_source=notifications&email_token=AG2C73SPDG6W5VJABOUDS5TQ44YKDA5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQPTOA#issuecomment-572586424>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73WQ44I47ZWNGG22233Q44YKDANCNFSM4KEYRLWQ . [image: image] https://user-images.githubusercontent.com/29800728/72076497-90435500-3330-11ea-8760-55912cc8a13f.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19 <#19>?email_source=notifications&email_token=AG2C73TITF3MOVPU7ESYVBLQ44ZC5A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQQJWI#issuecomment-572589273>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73QFEDVGZEGUTY3PNA3Q44ZC5ANCNFSM4KEYRLWQ . 是不是不支持我的CPU,我用的是斐讯的N1盒子,cpu是arm,系统是armbian(debian9) root@NAS:~# docker run superng6/aria2 standard_init_linux.go:211: exec user process caused "exec format error" 图片发不出来 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#19?email_source=notifications&email_token=AG2C73RZ4TP4K5JMCP3IDWTQ442A7A5CNFSM4KEYRLW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQRE5A#issuecomment-572592756>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2C73TD3LWXNZDKUS72ZR3Q442A7ANCNFSM4KEYRLWQ .

太难了,期待以后可以支持,docker应该不会管x86 还是arm框架的吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants