【发布时间】:2021-06-29 11:27:40
【问题描述】:
任何想法为什么以下工作(Docker 容器运行没有错误):
FROM alpine:3.14.0
RUN apk update && \
apk --no-cache add dcron
COPY entry.sh /entry.sh
RUN chmod +x /entry.sh
CMD /entry.sh
# entry.sh
#!/bin/sh
# start cron
/usr/sbin/crond -f
虽然如下
FROM alpine:3.14.0
RUN apk update && \
apk --no-cache add dcron
CMD /usr/sbin/crond -f
给我
cnt | setpgid: Operation not permitted
cnt exited with code 1
我在这里错过了什么?
【问题讨论】: