Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Containers
User Name
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.


  Search this Thread
Old 06-08-2020, 05:54 PM   #1
LQ Newbie
Registered: Jun 2020
Posts: 6

Rep: Reputation: Disabled
Help needed with changing time of container

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 When I ran the docker-compose I had the ENV set to:

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

{"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

Portiner 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:
sudo docker exec -it jellyfin /bin/bash
root@9d0ca5a7db50:/# date +%T -s "18:47:00"
date: cannot set date: Operation not permitted
I'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 you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux container host os and container os question jzoudavy Linux - Newbie 1 09-01-2015 05:21 AM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM
TrueCrypt not changing timestamp on container files taylorkh Linux - Software 0 01-01-2013 06:44 PM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
PAM time restrictions - changing Time.conf so it gets time from sql table noodlesoffire Linux - Newbie 1 04-04-2010 04:41 PM > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration