Article 54FK6 Help needed with changing time of container

Help needed with changing time of container

by
jfirestorm44
from LinuxQuestions.org on (#54FK6)
Hello all. I have been having some trouble getting a container I have to log the correct time. The container in question is jellyfin from linuxserver.io. When I ran the docker-compose I had the ENV set to:

Code:- TZ=America/New_yorkAlthough the first time in brackets is local time the "time:" is UTC which is causing me problems when trying to use fail2ban. Example:

Code:{"log":"[12:25:06] [INF] [1] Main: Jellyfin version: 10.5.5\n","stream":"stdout","time":"2020-06-08T16:25:06.963554149Z"}I am using Portainer for my containers and tried to add a volume to bind

Code:/etc/timezone:/etc/timezone:ro
/etc/localtime:/etc/localtime:roPortiner gave me errors when trying to deploy the container so then I did ther same via command line but still no luck.

I also tried this but received an error:
Code:sudo docker exec -it jellyfin /bin/bash
root@9d0ca5a7db50:/# date +%T -s "18:47:00"
date: cannot set date: Operation not permitted
18:47:00I'm not sure what else to try to get the "time:" portion of the jellyfin container logs to be in EDT not UTC.

Any help would be great.

Thank youlatest?d=yIl2AUoC8zA latest?i=sFoFQVeyyVo:RzgUqZCsuMM:F7zBnMy latest?i=sFoFQVeyyVo:RzgUqZCsuMM:V_sGLiP latest?d=qj6IDK7rITs latest?i=sFoFQVeyyVo:RzgUqZCsuMM:gIN9vFwsFoFQVeyyVo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments