I am trying to build a container which would include a custom scheduled task. This is my dockerfile:
FROM microsoft/windowsservercore
RUN schtasks /create /tn hello /sc daily /st 00:00 /tr "echo hello"
I get the following error:
ERROR: The task XML contains a value which is incorrectly formatted or out of range. (43,4):Task:
I get the same error also when attaching to a running default windows core container and running the command.
Needless to say, the command works well on standard windows 2016 server.
It seems like a bug in Windows containers, but I didn't find any known issue about it.
Appreciate any leads which may help figure out.