Synchronise a Docker Container Clock

?
S
Bash

The system clock of the container is off Amazon’s clock by more than 5 minutes, the maximum allowed by Amazon’s signature algorithm. This is why is causing the error. To fix, sync the containers time at the start using ntpdate time.nist.gov or simply restart docker.111111

1date
2echo "Synchronozing Container Hypervisor Clock..."
3ntpdate time.nist.gov

Created on 8/9/2018