Skip to content

mbentley/docker-setdatetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mbentley/setdatetime

docker image for setting date/time via container Based off of alpine:latest

To pull this image: docker pull mbentley/setdatetime

Example usage

Set date/time (manually setting time from host)

docker run -it --rm --privileged mbentley/setdatetime $(date "+%Y%m%d%H%M.%S")

Set date/time using NTP

docker run -it --rm --privileged mbentley/setdatetime ntp

Set date/time using NTP and specifying a NTP server or pool

docker run -it --rm --privileged mbentley/setdatetime ntp pool.ntp.org

About

Set date/time from Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages