Sign inSign up

hausen1012/jobber

By hausen1012

•Updated about 3 years ago

Image
0

214

hausen1012/jobber repository overview

⁠运行

docker run -d \
--name job \
hausen1012/jobber:alpine

docker exec -it job tail -f test.log 可以看见日志正常输出。

⁠制作自己的定时任务

docker run -d --name job hausen1012/jobber:alpine

docker cp job:/root/test.sh ./ && docker cp job:/root/jobfile ./

然后可以修改脚本内容和定时任务的相关配置。

FROM hausen1012/jobber:alpine

COPY jobfile /root/jobfile

COPY test.sh /root/test.sh

docker build -t myjobber .

Tag summary

Content type

Image

Digest

sha256:d869aba66…

Size

9 MB

Last updated

about 3 years ago

docker pull hausen1012/jobber:alpine