Skip to content

Commit

Permalink
Disable timezone sharing on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Feb 27, 2024
1 parent 6bfe086 commit f536111
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exegol/model/ContainerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ def enableSharedTimezone(self):
if EnvInfo.is_windows_shell:
logger.warning("Timezone sharing is not supported from a Windows shell. Skipping.")
return
elif EnvInfo.isMacHost():
# On Orbstack /etc cannot be shared + we should test how Orbstack handle symlink
# With docker desktop, symlink are resolved as full path on container creation. When tzdata is updated on the host, the container can no longer be started because the files of the previous package version are missing.
# TODO Test if env var can be used as replacement
logger.warning("Timezone sharing on Mac isn't supported for instability issues. Skipping.")
return
if not self.__share_timezone:
logger.verbose("Config: Enabling host timezones")
# Try to share /etc/timezone (deprecated old timezone file)
Expand Down

0 comments on commit f536111

Please sign in to comment.