Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

windows docker update clock

# From PowerShell:
$datetime = Get-Date
$dt = $datetime.ToUniversalTime().ToString('yyyy-MM-dd HH:mm:ss')
docker run --net=host --ipc=host --uts=host --pid=host --security-opt=seccomp=unconfined --privileged --rm alpine date -s $dt
Source by forums.docker.com #
 
PREVIOUS NEXT
Tagged: #windows #docker #update #clock
ADD COMMENT
Topic
Name
7+5 =