3

I use docker container to run tomcat.

Now I want to modify system date to use date -s '2012-12-25', but can not have privilege. So I use libfaketime to faketime,as below $LD_PRELOAD=/usr/local/lib/faketime/libfaketime.so.1 FAKETIME="+1d" but only effectively current session.

So what can I do to effective the system date in container? Thanks!!!

0 Answers0