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

arm32v7/debian:bullseye-slim: Clock not working #106

Closed
satisfied83 opened this issue Oct 30, 2020 · 7 comments
Closed

arm32v7/debian:bullseye-slim: Clock not working #106

satisfied83 opened this issue Oct 30, 2020 · 7 comments

Comments

@satisfied83
Copy link

When trying to get the current time from the running arm32v7/debian:bullseye-slim image I always get back 1970 (seconds since epoch 0)

e.g.
pi@raspberrypi:~ $ docker run -it --rm arm32v7/debian:bullseye-slim date Thu Jan 1 00:00:00 UTC 1970

Furthemore: Time doesn't change if checking seconds since epochtime
date +%s
the result is always 0

When i run the container in privileged mode fetching time works well.

I also checked with arm32v7/debian:buster-slim there it worked flawless.

@tianon
Copy link
Contributor

tianon commented Oct 30, 2020

This is the same root cause as #97; bullseye is now using the 64bit time syscalls on 32bit userspace, so you need to make sure your Docker is sufficiently new and you'll need a newer libseccomp than is probably available in the stable distro you're running on the host.

@satisfied83
Copy link
Author

satisfied83 commented Nov 4, 2020

Hi tianon, Hi all,

i just checked on the system where date command is not working the version of docker and libseccomp2. Both components seem to be the latest ones ?
Environment A (Raspberry Pi 4): Clock not working

pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

pi@raspberrypi:~ $ docker version
Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46
 Built:             Wed Sep 16 17:07:02 2020
 OS/Arch:           linux/arm
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46
  Built:            Wed Sep 16 17:00:52 2020
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
pi@raspberrypi:~ $ apt list libseccomp2
Listing... Done
libseccomp2/stable,now 2.3.3-4 armhf [installed]

BUT in Environment B (Raspberry Pi 3) it works without problems although it is an older version of docker and libseccomp2 installed

pi@PlayPi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.13 (stretch)
Release:        9.13
Codename:       stretch

pi@PlayPi:~ $ docker version
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:30:54 2017
 OS/Arch:      linux/arm
Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:30:54 2017
 OS/Arch:      linux/arm
 Experimental: false
 
pi@PlayPi:~ $ apt list libseccomp2
oldstable, 2.3.1-2.1+deb9u1

@satisfied83
Copy link
Author

Just checked with the old system were everything was working fine.

After updating the package libc-bin system is no longer able to get date properly.

@tianon
Copy link
Contributor

tianon commented Nov 4, 2020

... you'll need a newer libseccomp than is probably available in the stable distro you're running on the host.

Specifically:

  • Docker version 19.03.9 or newer
  • libseccomp version 2.4.2 or newer

😞

@juampe
Copy link

juampe commented Nov 15, 2020

Solved for raspbian buster with libseccomp2 2.5.0-3 with apt pinning and debian testing/unsable packages
apt-get -y install libseccomp2/unstable

docker run -it debian:sid /bin/date
Sun Nov 15 16:09:57 UTC 2020

@tianon
Copy link
Contributor

tianon commented Mar 23, 2021

Closing, as this isn't something we can fix directly here (it requires host updates to libseccomp and Docker).

@Callisto88
Copy link

In case anyone is still struggling with this issue i was able to solve by upgrading from buster to bullseye. Had to install gcc-8-base as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants