Do not use two methods of syncing time at the same time

Method 1:

      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro

Mount these inside container so that host and container time are in sync

Method 2:

Pass the TZ environment variable and run the following inside container

$ ln -snf /usr/share/zoneinfo/Europe/Berlin /etc/localtime && echo Europe/Berlin > /etc/timezone
This commit is contained in:
herlesupreeth
2020-09-25 08:37:47 +02:00
parent 27fad29530
commit cc2c596987
14 changed files with 15 additions and 15 deletions

View File

@@ -41,4 +41,4 @@ sed -i 's|IMS_DOMAIN|'$IMS_DOMAIN'|g' install/etc/open5gs/pcrf.yaml
sed -i 's|PCSCF_IP|'$PCSCF_IP'|g' install/etc/open5gs/pcrf.yaml
# Sync docker time
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone