user@PC:~$ docker exec -it [ContainerID] date
Fri Mar 8 05:11:35 UTC 2024
user@PC:~$
user@PC:~$
user@PC:~$ docker exec -it [ContainerID] grep . /etc/*-release
/etc/lsb-release:DISTRIB_ID=Ubuntu
/etc/lsb-release:DISTRIB_RELEASE=18.04
/etc/lsb-release:DISTRIB_CODENAME=bionic
/etc/lsb-release:DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
/etc/os-release:NAME="Ubuntu"
/etc/os-release:VERSION="18.04.6 LTS (Bionic Beaver)"
/etc/os-release:ID=ubuntu
/etc/os-release:ID_LIKE=debian
/etc/os-release:PRETTY_NAME="Ubuntu 18.04.6 LTS"
/etc/os-release:VERSION_ID="18.04"
/etc/os-release:HOME_URL="https://www.ubuntu.com/"
/etc/os-release:SUPPORT_URL="https://help.ubuntu.com/"
/etc/os-release:BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
/etc/os-release:PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
/etc/os-release:VERSION_CODENAME=bionic
/etc/os-release:UBUNTU_CODENAME=bionic
user@PC:~$
user@PC:~$
user@PC:~$
user@PC:~$ docker exec -it [ContainerID] apt-get -y update
user@PC:~$ docker exec -it [ContainerID] apt-get -y upgrade
user@PC:~$ docker exec -it [ContainerID] apt-get -y install tzdata
user@PC:~$
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
tzdata
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 186 kB of archives.
After this operation, 3072 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 2023c-0ubuntu0.18.04 [186 kB]
Fetched 186 kB in 2s (85.8 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package tzdata.
(Reading database ... 7217 files and directories currently installed.)
Preparing to unpack .../tzdata_2023c-0ubuntu0.18.04_all.deb ...
Unpacking tzdata (2023c-0ubuntu0.18.04) ...
Setting up tzdata (2023c-0ubuntu0.18.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.
1. Africa 2. America 3. Antarctica 4. Australia 5. Arctic 6. Asia 7. Atlantic 8. Europe 9. Indian 10. Pacific 11. SystemV 12. US 13. Etc
Geographic area: 6
Please select the city or region corresponding to your time zone.
1. Aden 7. Ashgabat 13. Barnaul 19. Chongqing 25. Dushanbe 31. Hong_Kong 37. Jerusalem 43. Khandyga 49. Macau 55. Novokuznetsk 61. Pyongyang 67. Sakhalin 73. Taipei 79. Tokyo 85. Vientiane
2. Almaty 8. Atyrau 14. Beirut 20. Colombo 26. Famagusta 32. Hovd 38. Kabul 44. Kolkata 50. Magadan 56. Novosibirsk 62. Qatar 68. Samarkand 74. Tashkent 80. Tomsk 86. Vladivostok
3. Amman 9. Baghdad 15. Bishkek 21. Damascus 27. Gaza 33. Irkutsk 39. Kamchatka 45. Krasnoyarsk 51. Makassar 57. Omsk 63. Qostanay 69. Seoul 75. Tbilisi 81. Ujung_Pandang 87. Yakutsk
4. Anadyr 10. Bahrain 16. Brunei 22. Dhaka 28. Harbin 34. Istanbul 40. Karachi 46. Kuala_Lumpur 52. Manila 58. Oral 64. Qyzylorda 70. Shanghai 76. Tehran 82. Ulaanbaatar 88. Yangon
5. Aqtau 11. Baku 17. Chita 23. Dili 29. Hebron 35. Jakarta 41. Kashgar 47. Kuching 53. Muscat 59. Phnom_Penh 65. Rangoon 71. Singapore 77. Tel_Aviv 83. Urumqi 89. Yekaterinburg
6. Aqtobe 12. Bangkok 18. Choibalsan 24. Dubai 30. Ho_Chi_Minh 36. Jayapura 42. Kathmandu 48. Kuwait 54. Nicosia 60. Pontianak 66. Riyadh 72. Srednekolymsk 78. Thimphu 84. Ust-Nera 90. Yerevan
Time zone: 69
Current default time zone: 'Asia/Seoul'
Local time is now: Fri Mar 8 14:02:59 KST 2024.
Universal Time is now: Fri Mar 8 05:02:59 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
user@PC:~$
user@PC:~$
user@PC:~$ docker exec -it [ContainerID] date
Fri Mar 8 14:03:10 KST 2024
user@PC:~$
user@PC:~$
'Tool > docker' 카테고리의 다른 글
docker / UTC / KST / tzdata (0) | 2024.03.12 |
---|---|
docker / container / export / import (0) | 2024.03.06 |
docker / SQLServer 2019 / 설치 / 백업 (1) | 2024.02.27 |
docker / portainer / 정의 / 특징 / 장단점 / 설치방법 (0) | 2024.02.19 |
docker / docker-compose / 정의 / 특징 / 장단점 / 설치방법 (0) | 2024.02.19 |