Wildfly Docker image with option to change system time
251
Some projects require you to change time (to verify services that use Date.now()). Docker by default provides no way to change date - it uses host's system settings. Your best bet is to use Libfaketime.
To change time, all you have to do is to set environment variable FAKETIME. If it isn't set, Docker will use your system's date.
All formats and informations can be found on Libfaketime GitHub. Most popular examples are shown below.
If you want to set time that never changes (is always the same), use format below.
FAKETIME: "2020-12-24 20:30:00"
If you want to set concrete date, but also want the clock to work normally, just use @ option before format.
FAKETIME: "@2020-12-24 20:30:00"
Libfaketime also offers relative time options if you want container to be set always f.e. some years forward. This format begins with + or - and looks like this:
FAKETIME: "+1.5y"
Content type
Image
Digest
Size
352.3 MB
Last updated
about 9 years ago
docker pull thedeem/wildfly-floating-time