run "docker run" from crontab
Can't use docker run -it --link [...]
when running from cron - I use docker run --link [...]
now.
To elaborate on Martin's answer, -it
is shorthand for -i -t
, ie run interactively on terminal (pseudo TTY), so it's not necessary for running in a cronjob.
If the command is suitable for automation, -it
should be not necessary, so removing it should let you run docker from a cron job.