How to change timezone in a running Docker Container

  • The timezone info folder is /usr/share/zoneinfo
  • The current timezone info file is /etc/localtime
  • The current zoneinfo is a link file point to a special timezone file in the timezone info filder. So, we can change the link file point to another timezone like following example
ln -s /usr/share/zone[......]

继续阅读

Solution to slow boot time (systemd-networkd-wait-online.service)

#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or[......]

继续阅读

Several ways to display the Linux version in CLI

1. uname

ubuntu@Server:~$ uname -a
Linux thinkpad 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

2. cat /proc/version

ubuntu@Server:~$ cat /proc/version
Linux version 6.11.0-8-generic (buildd@lcy02-amd64-042) (x86_64-linux-gnu-gcc-14 (U[......]

继续阅读