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:
@@ -42,4 +42,4 @@ sed -i 's|PGW_IP|'$PGW_IP'|g' install/etc/open5gs/mme.yaml
|
||||
sed -i 's|EPC_DOMAIN|'$EPC_DOMAIN'|g' install/etc/open5gs/mme.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
|
||||
|
Reference in New Issue
Block a user