Hi, based on the documentation and the “cron-example” project, I thought that if I just added a similar line to my dockerfile, I’d be in business. However, my container can’t find
Connecting to 150deeb26a5b3d03c15f8bc1c64e0c8d... Spawning shell... root@150deeb:/usr/src/app# crontab bash: crontab: command not found root@150deeb:/usr/src/app# crontab -e bash: crontab: command not found root@150deeb:/usr/src/app# systemctl bash: systemctl: command not found root@150deeb:/usr/src/app#
…as you see, systemctl is also missing, despite including the line
ENV INITSYSTEM on in my Dockerfile.
FWIW, I’m using the latest debian base image for Beaglebone Black.
I’m pretty confused, because I have not been doing any crazy modifications to the default example projects. Anyone who could help me figure out what’s going wrong here would be much appreciated!
editing to update: the container doesn’t even build successfully when I include a crontab reference:
[main] Removing intermediate container d5aacaafd2a8 [main] Step 10/11 : RUN echo "*/1 * * * * cd /usr/src/app/src && python3 spt.py" | crontab [main] ---> Running in fd051350c519 [main] /bin/sh: 1: crontab: not found