{"id":26715523,"url":"https://github.com/ichikawayukko/docker-ntp2038","last_synced_at":"2026-04-27T12:04:51.992Z","repository":{"id":284392827,"uuid":"954786388","full_name":"IchikawaYukko/docker-ntp2038","owner":"IchikawaYukko","description":"The NTP server always returns year 2038 for testing purpose. 常に2038年を返すテスト用NTPサーバ（ぉ","archived":false,"fork":false,"pushed_at":"2025-03-25T17:20:48.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:33:34.191Z","etag":null,"topics":["2036-problem","2038-problem","chronyd","docker-image","ntp-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IchikawaYukko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-25T16:02:38.000Z","updated_at":"2025-03-25T17:23:23.000Z","dependencies_parsed_at":"2025-03-25T17:35:50.170Z","dependency_job_id":"1e65f69e-bcf3-416b-ac41-49f8e549a56a","html_url":"https://github.com/IchikawaYukko/docker-ntp2038","commit_stats":null,"previous_names":["ichikawayukko/docker-ntp2038"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchikawaYukko%2Fdocker-ntp2038","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchikawaYukko%2Fdocker-ntp2038/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchikawaYukko%2Fdocker-ntp2038/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchikawaYukko%2Fdocker-ntp2038/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IchikawaYukko","download_url":"https://codeload.github.com/IchikawaYukko/docker-ntp2038/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245860798,"owners_count":20684409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2036-problem","2038-problem","chronyd","docker-image","ntp-server"],"created_at":"2025-03-27T14:25:29.698Z","updated_at":"2026-04-27T12:04:51.985Z","avatar_url":"https://github.com/IchikawaYukko.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-ntp2038\nThe NTP server always returns year 2038 for testing purpose.  \n常に2038年を返すテスト用NTPサーバ（ぉ\n\n# Docker Hub Image\nYou can pull [ichikawayukko/ntp2038](https://hub.docker.com/r/ichikawayukko/ntp2038) image from Doker Hub to use!\n\nどっかーはぶに置いてある ichikawayukko/ntp2038 イメージをご利用ください！\n\n# Enviroment Variables / 環境変数\nYou can set `OFFSET_YEAR`, `OFFSET_DAYS` variable to return another year.  \n`OFFSET_YEAR`, `OFFSET_DAYS` 環境変数を設定することで、ほかの年を返すことも可能。\n## OFFSET_YEAR\nSet offset years  \nDefault: Diference from year 2038. (`13` on Year 2025)\n\n何年分ずらした日時を返すのかを指定します  \nデフォルト: 2038年との差分（2025年の場合は`13`）\n## OFFSET_DAYS\nSet offset days. (Leap years)  \nDefault: `3` (Leap year 2028, 2032, 2036)\n\n何日分ずらした日時を返すのかを指定します（閏年用）  \nデフォルト： `3` （閏年3日分。2028, 2032, 2036年用）\n\n## SERVER\nSet upstream NTP server to sync.  \nDefault: `pool.ntp.org`\n\n同期する上流のNTPサーバを指定します  \nデフォルト: `pool.ntp.org`\n\n### ADDITIONAL_CONFIG\nSet additional configuration line if you want.  \nDefault: \"\"\n\n追加設定値がある場合はここに書きます  \nデフォルト: \"\"\n\n# Test server\nYou can connect to [ntp2038.yuriko.co.nz](ntp2038.yuriko.co.nz)(IPv4/IPv6), [ntp2038.akiba.yuriko.co.nz](ntp2038.akiba.yuriko.co.nz)(IPv6 only) for test this NTP server!\n\nOr run `ntpdate -qdv ntp2038.akiba.yuriko.co.nz` command like below!\n```\n[root@trijn ~]# ntpdate -qdv ntp2038.akiba.yuriko.co.nz\n26 Mar 03:44:55 ntpdate[24378]: ntpdate 4.2.6p5@1.2349-o Tue Jun 23 15:38:19 UTC 2020 (1)\nLooking for host ntp2038.akiba.yuriko.co.nz and service ntp\nhost found : cisco-ucs.home.yuriko.co.nz\ntransmit(2001:470:fd50:20:662:73ff:fe5f:c06c)\nreceive(2001:470:fd50:20:662:73ff:fe5f:c06c)\ntransmit(2001:470:fd50:20:662:73ff:fe5f:c06c)\nreceive(2001:470:fd50:20:662:73ff:fe5f:c06c)\ntransmit(2001:470:fd50:20:662:73ff:fe5f:c06c)\nreceive(2001:470:fd50:20:662:73ff:fe5f:c06c)\ntransmit(2001:470:fd50:20:662:73ff:fe5f:c06c)\nreceive(2001:470:fd50:20:662:73ff:fe5f:c06c)\nserver 2001:470:fd50:20:662:73ff:fe5f:c06c, port 123\nstratum 15, precision -25, leap 00, trust 000\nrefid [2001:470:fd50:20:662:73ff:fe5f:c06c], delay 0.03461, dispersion 0.00000\ntransmitted 4, in filter 4\nreference time:    04000469.5e498c43  Mon, Feb 17 1902  2:39:53.368\noriginate timestamp: 0400049b.492c52e0  Mon, Feb 17 1902  2:40:43.285\ntransmit timestamp:  eb8d782e.2f52008a  Wed, Mar 26 2025  3:45:02.184\nfilter delay:  0.03714  0.03461  0.03526  0.03601\n         0.00000  0.00000  0.00000  0.00000\nfilter offset: 41016023 41016023 41016023 41016023\n         0.000000 0.000000 0.000000 0.000000\ndelay 0.03461, dispersion 0.00000\noffset 410160237.095359\n\n26 Mar 03:45:02 ntpdate[24378]: step time server 2001:470:fd50:20:662:73ff:fe5f:c06c offset 410160237.095359 sec\n```\n\nIf `ntpdate` command is not available, run `chronyd -QU 'server ntp2038.yuriko.co.nz iburst'` instead.\n```\n[yuriko@i-004b276ed8c2b2733 ~]$ chronyd -QU 'server ntp2038.yuriko.co.nz iburst'\n2026-02-02T01:40:33Z chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG)\n2026-02-02T01:40:33Z Disabled control of system clock\n2026-02-02T01:40:38Z System clock wrong by 378691199.979726 seconds (ignored)\n2026-02-02T01:40:38Z chronyd exiting\n```\n\nYou can set source for chronyd or ntpd to monitor offset. (it should be 4747days)\n```\n[root@trijn ~]# chronyc sources -v\n210 Number of sources = 4\n\n  .-- Source mode  '^' = server, '=' = peer, '#' = local clock.\n / .- Source state '*' = current synced, '+' = combined , '-' = not combined,\n| /   '?' = unreachable, 'x' = time may be in error, '~' = time too variable.\n||                                                 .- xxxx [ yyyy ] +/- zzzz\n||      Reachability register (octal) -.           |  xxxx = adjusted offset,\n||      Log2(Polling interval) --.      |          |  yyyy = measured offset,\n||                                \\     |          |  zzzz = estimated error.\n||                                 |    |           \\\nMS Name/IP address         Stratum Poll Reach LastRx Last sample\n===============================================================================\n^+ 47.79.37.210                  2  10   377   662    -97us[  -97us] +/- 2881us\n^+ any.time.nl                   2  10   377   667    -52us[  -31us] +/- 1313us\n^* 2406:da14:10c4:9aa0:123::     1  10   377   664   +183us[ +203us] +/- 1166us\n^x cisco-ucs.home.yuriko.co\u003e    15   6   377    16   -4747d[ -4747d] +/- 5684us\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichikawayukko%2Fdocker-ntp2038","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichikawayukko%2Fdocker-ntp2038","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichikawayukko%2Fdocker-ntp2038/lists"}