Skip to content

Instantly share code, notes, and snippets.

@kevinkarwaski
Forked from mmcc/b2dntp
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinkarwaski/930e13a0a08ba67432db to your computer and use it in GitHub Desktop.
Save kevinkarwaski/930e13a0a08ba67432db to your computer and use it in GitHub Desktop.
#!/bin/sh
# Fix NTP/Time
# https://github.com/boot2docker/boot2docker/issues/290
boot2docker ssh -- sudo killall -9 ntpd
boot2docker ssh -- sudo ntpclient -s -h pool.ntp.org
boot2docker ssh -- sudo ntpd -p pool.ntp.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment