Skip to content

Instantly share code, notes, and snippets.

@kokuyouwind
Created December 9, 2016 05:18
Show Gist options
  • Save kokuyouwind/7e69b04896923fa3bed16ecd529e26f3 to your computer and use it in GitHub Desktop.
Save kokuyouwind/7e69b04896923fa3bed16ecd529e26f3 to your computer and use it in GitHub Desktop.
#!/bin/sh
# スリープ時にVMの時計がずれることがあるため、ホストの時刻を反映するスクリプト
# @see https://forums.docker.com/t/docker-for-windows-should-resync-vm-time-when-computer-resumes-from-sleep/17825
docker run --net=host --ipc=host --uts=host --pid=host --security-opt=seccomp=unconfined --privileged --rm alpine date -s "`date -u '+%Y-%m-%d %H:%M:%S'`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment