LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-08-2020, 05:54 PM   #1
jfirestorm44
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 linuxserver.io. When I ran the docker-compose I had the ENV set to:

Code:
- 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:

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:ro
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:
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:00
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 07:29 PM.

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