Docker Compose for CRON job

We had a task to Create a docker file with ubuntu image

  1. Create a file which has code to print date and time
  2. Write a cron file named "hello-cron" which includes the to run for every 1 min.
  3. The docker image should have a CRON job to print date and time every 1 min

We created a file via vi command and in it given as

#!/bin/sh -l
echo "::set-output name=time::$time"

After which we had executed -

chmod +x

then tried as -

* * * * * /home/scrapbook/tutorial

Not sure where we went wrong, please guide us.

How is this related to Elasticsearch?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.