-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong date/time in docker container #23
Comments
Here's what I'd suggest. First, make these edits: You won't find the timezone/localtime volumes paths in the reference service definition. I don't have those lines in my own service definition and my container still has the correct local time: I also don't see bad timestamps in my log: I couldn't replicate the problem of bad timestamps when I added those timezone/localtime volumes paths on my test system so I can't say whether they are causing your container to show the bad timestamps. All I can really say is that the ZeroTier container does show correct time without those timezone/localtime volumes paths. But I doubt that that's implicated in your timeouts. As for changing Your logs show you are running on a Raspberry Pi but there's no indication of which version of Raspberry Pi OS you are running so I'd like to make it clear that, while the words "This is needed on Raspberry Pi Bullseye" might sound like it only applies to Bullseye, it really means that it has only been tested on Raspberry Pi OS Bullseye. Setting this It was never clear why trying to set up the IPTables rules by calling However, iptables/iptables-nft is only used to set up local NAT rules so I doubt that that's implicated in your timeouts. I've tested various hypotheses trying to replicate what you're seeing, including:
Basically, no matter what I do, I can't get my client to time-out like that. What do you see in ZeroTier Central for this host? I assume this host has been authorised? I think what I would do is start from a clean slate:
If that doesn't help then I'd be asking questions like:
|
Returning to the timezone topic… Although I understand what the pattern of mapping On Discord someone once explained to me that they had mapped I think the best general-purpose solution to the
Just having the correct timezone inside a container doesn't guarantee that the container's time will always match the host's. Whenever a Being out-of-sync usually doesn't matter because it's probably not your timezone that was being updated. However, it's something to be aware of if your country changes when you start or stop daylight saving. Any time politicians fuzt with timezones, there's always a risk of incorrect time calculations until everything catches up. |
Hello,
I can't join my network. I get following error.
zerotier-one | connect: Operation timed out
I believe that part of the problem is that my clock/date is incorrect in the docker container.
docker-compose file:
Logs when I run the container
The text was updated successfully, but these errors were encountered: