Skip to content
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 in docker container #290

Closed
cdupont opened this issue Sep 6, 2021 · 4 comments
Closed

Wrong date in docker container #290

cdupont opened this issue Sep 6, 2021 · 4 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@cdupont
Copy link

cdupont commented Sep 6, 2021

I'm running redis:6.0-alpine on Raspberry PI.
I noticed a wrong date in the container:

pi@raspberry:~ $ docker exec -it redis date
Thu May  7 02:52:32 UTC 2071
pi@raspberry:~ $ date
Mon Sep  6 19:04:41 CEST 2021

I just pull it and run it:

$ docker run redis:6.0-alpine
Unable to find image 'redis:6.0-alpine' locally
6.0-alpine: Pulling from library/redis
...
1:M 04 May 2071 17:40:24.000 # Server initialized
1:M 04 May 2071 17:40:24.000 * Ready to accept connections

This causes problems with some Redis commands.

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Sep 7, 2021
@wglambert
Copy link

I'm not able to reproduce

$ date
Tue Sep  7 17:03:27 UTC 2021

$ docker run -it --rm redis:6.0-alpine ash
Unable to find image 'redis:6.0-alpine' locally
6.0-alpine: Pulling from library/redis
a0d0a0d46f8b: Pull complete 
a04b0375051e: Pull complete 
cdc2bb0f9590: Pull complete 
d0892b8dbfbb: Pull complete 
2708df91552a: Pull complete 
a57392b26282: Pull complete 
Digest: sha256:61f3e955fbef87ea07d7409a48a48b069579e32f37d2f310526017d68e9983b7
Status: Downloaded newer image for redis:6.0-alpine

/data # date
Tue Sep  7 17:03:32 UTC 2021

See also #138

@cdupont
Copy link
Author

cdupont commented Sep 7, 2021

It's related to this problem: https://stackoverflow.com/questions/66091978/corrupt-date-with-redis6-alpine-on-raspi
https://blog.samcater.com/fix-workaround-rpi4-docker-libseccomp2-docker-20/
It seems to be caused by an outdated version of libseccomp in Raspbian.
It affects branches 5 and 6 of Redis (watch the date):

$ docker run redis:5-alpine
1:C 20 Jun 2071 21:46:48.000 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
 $ docker run redis:6.0-alpine
1:C 10 May 2071 23:51:36.000 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

Older versions are fine:

pi@wazigate:~ $ docker run redis:6.0.6-alpine3.12
1:C 07 Sep 2021 08:01:42.756 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

@tianon
Copy link
Contributor

tianon commented Sep 7, 2021

@tianon tianon closed this as completed Sep 7, 2021
@tianon
Copy link
Contributor

tianon commented Sep 7, 2021

(Closing since it's not something we can fix in the image -- it's something that has to be fixed on your container host.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

3 participants