Skip to content

Instantly share code, notes, and snippets.

@dibble-james
Created January 27, 2020 19:57
Show Gist options
  • Save dibble-james/a9328df4b967dc7e701a552bfe082376 to your computer and use it in GitHub Desktop.
Save dibble-james/a9328df4b967dc7e701a552bfe082376 to your computer and use it in GitHub Desktop.
Sync Docker Desktop with Host
$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
@dibble-james
Copy link
Author

Setup with Windows Task Scheduler with a trigger of On Workstation Unlock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment