找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2998|回复: 12

[N1盒子] n1小钢炮怎么设置docker容器定时重启?

[复制链接]
发表于 2021-6-21 08:17 | 显示全部楼层 |阅读模式

系统是安装灯大的,安装docker版本qbittorrent4.3.5(灯大最新版),只是这个qb运行一天多就打不开了,必须重启才能用。

基础知识有限,不会操作定时重启命令,还请大神帮忙指导一二,谢谢!


我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-6-21 12:10 | 显示全部楼层
定期执行下列命令  docker -rm -f  容器id

点评

哈哈哈 ,小白不知道真的执行代码  详情 回复 发表于 2021-8-13 00:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-22 14:41 | 显示全部楼层
rund11 发表于 2021-6-21 12:10
定期执行下列命令  docker -rm -f  容器id

你好坏,我好喜欢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-6-22 20:37 | 显示全部楼层
rund11 发表于 2021-6-21 12:10
定期执行下列命令  docker -rm -f  容器id

什么意思?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-6-22 20:37 | 显示全部楼层

正确的是什么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-22 21:23 | 显示全部楼层
rund11 发表于 2021-6-21 12:10
定期执行下列命令  docker -rm -f  容器id

真的坏啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-4 16:20 | 显示全部楼层
测试了重启docker服务命令是这个
/etc/init.d/S60dockerd restart
只重启qb:
docker restart qbittorrent
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-13 00:05 | 显示全部楼层
rund11 发表于 2021-6-21 12:10
定期执行下列命令  docker -rm -f  容器id

哈哈哈  ,小白不知道真的执行代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-9-3 14:13 | 显示全部楼层
老哥你是怎么安装这个qb的、我搞了一天webUI都打不开换了好几个版本了

点评

IMAGE_NAME=docker pull 80x86/qbittorrent:4.3.5-alpine-3.13.5-arm64 WEB_PORT=8088 DOWNLOAD_PATH=$(cat /var/lib/qbittorrent/.config/qBittorrent/qBittorrent.conf | grep -i 'Downloads\\SavePath' | cut -  详情 回复 发表于 2021-9-3 14:41
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-9-3 14:41 | 显示全部楼层
Mr.Vico` 发表于 2021-9-3 14:13
老哥你是怎么安装这个qb的、我搞了一天webUI都打不开换了好几个版本了

IMAGE_NAME=docker pull 80x86/qbittorrent:4.3.5-alpine-3.13.5-arm64
WEB_PORT=8088
DOWNLOAD_PATH=$(cat /var/lib/qbittorrent/.config/qBittorrent/qBittorrent.conf | grep -i 'Downloads\\SavePath' | cut -d'=' -f2)
BT_PORT=8999
QBT_AUTH_SERVER_ADDR=$(ip -4 addr show docker0 | grep inet | awk '{print $2}' | cut -d'/' -f1)
docker run -d --name qbittorrent \
        -e PUID=$(id -u qbittorrent) \
        -e PGID=$(cat /etc/group | grep -e '^users' | cut -d':' -f3) \
        -e WEB_PORT=$WEB_PORT \
        -e BT_PORT=$BT_PORT \
        -e QBT_AUTH_SERVER_ADDR=$QBT_AUTH_SERVER_ADDR \
        --restart unless-stopped \
        -p $WEB_PORTWEB_PORT -p $BT_PORTBT_PORT/tcp -p $BT_PORTBT_PORT/udp \
        -v /var/lib/qbittorrent/.config/qBittorrent:/config \
        -v /var/lib/qbittorrent/.local/share/data/qBittorrent:/data \
        -v /media/a1/downloads/qb:/downloads \
        --mount type=tmpfs,destination=/tmp \
        ${IMAGE_NAME}

当时找的教程装的,可以试一下。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-9-3 20:00 来自手机 | 显示全部楼层
我也是,找了好几个定时方法都不管用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-11-12 22:44 | 显示全部楼层
20 22 * * 1-5 /sbin/poweroff
35 22 * * 1-5 /sbin/reboot
这样写小钢炮可以定时关机,但不能自动重启,大神知不知道怎么解

点评

已进步一大步了  详情 回复 发表于 2021-11-24 12:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-11-24 12:33 | 显示全部楼层
格格霸 发表于 2021-11-12 22:44
20 22 * * 1-5 /sbin/poweroff
35 22 * * 1-5 /sbin/reboot
这样写小钢炮可以定时关机,但不能自动重启, ...

已进步一大步了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 18:43

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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