October 27, 20169 yr I just noticed when looking at some of the logs in my dockers that they are using UTC/GMT time instead of my local time.. Can I change that somewhere so that it will stay on restarts?
October 27, 20169 yr Community Expert Pick one specific docker that is exhibiting this behavior and then see this post in the Docker FAQ: I need some help! What info does the community need to help me?
October 27, 20169 yr Author Pick one specific docker that is exhibiting this behavior and then see this post in the Docker FAQ: I need some help! What info does the community need to help me? Docker log: [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 10-adduser: executing... GID/UID ------------------------------------- User uid: 911 User gid: 911 ------------------------------------- [cont-init.d] 10-adduser: exited 0. [cont-init.d] 40-config: executing... crontab => 30 * * * * /app/rclone.sh chmod: /config/Rclone.sh: No such file or directory [cont-init.d] 40-config: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. Executing => rclone copy dropbox: /data 2016/10/27 19:30:03 Local file system at /data: Waiting for checks to finish 2016/10/27 19:30:03 Local file system at /data: Waiting for transfers to finish 2016/10/27 19:30:03 Transferred: 0 Bytes (0 Bytes/s) Errors: 0 Checks: 827 Transferred: 0 Elapsed time: 3.2s The run command: root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="RcloneDropbox" --net="bridge" -e TZ="America/Los_Angeles" -e HOST_OS="unRAID" -e "SYNC_DESTINATION"="dropbox" -e "SYNC_DESTINATION_SUBPATH"="" -e "CRON_SCHEDULE"="30 * * * *" -e "SYNC_COMMAND"="rclone copy dropbox: /data" -v "/mnt/cache/appdata/RcloneDropbox":"/config":rw -v "/mnt/user/Backup/Dropbox":"/data":rw,slave tynor88/rclone:dev c4fcf433f3aaf40f6d1106b30390995fb2d4b8d5fd57ac66c0cb37885b25485c The command finished successfully! As you see in the log, it's using UTC/GMT since right now it's 13:33 and the log already has entries for 19:30 The TZ seems to be set properly though as I can see from the run command.. I just picked one docker, I have a couple (not all) that have this issue.. From inside the docker i ran set and date: / # set CRON_SCHEDULE='30 * * * *' HISTFILE='/root/.ash_history' HOME='/root' HOSTNAME='c4fcf433f3aa' HOST_OS='unRAID' IFS=' ' OPTIND='1' PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' PPID='0' PS1='\w \$ ' PS2='> ' PS4='+ ' PWD='/' RCLONE_ARCH='amd64' RCLONE_VERSION='current' S6_BEHAVIOUR_IF_STAGE2_FAILS='2' S6_KEEP_ENV='1' SHLVL='1' SYNC_COMMAND='rclone copy dropbox: /data' SYNC_DESTINATION='dropbox' SYNC_DESTINATION_SUBPATH='' TZ='America/Los_Angeles' / # date Thu Oct 27 20:43:37 GMT 2016 / #
Archived
This topic is now archived and is closed to further replies.