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

Timestamp of /etc cannot be changed #3148

Closed
AkihiroSuda opened this issue Oct 4, 2022 · 0 comments · Fixed by #3149
Closed

Timestamp of /etc cannot be changed #3148

AkihiroSuda opened this issue Oct 4, 2022 · 0 comments · Fixed by #3149

Comments

@AkihiroSuda
Copy link
Member

$ cat Dockerfile 
FROM debian:bullseye-20220912@sha256:3e82b1af33607aebaeb3641b75d6e80fd28d36e17993ef13708e9493e30e8ff9
RUN touch --date=@0 /bin /etc

$ sudo buildctl build --frontend dockerfile.v0 --output type=tar,dest=a.tar --local dockerfile=. --local context=.

$ tar tvf a.tar
drwxr-xr-x 0/0               0 1970-01-01 09:00 bin/
...
drwxr-xr-x 0/0               0 2022-10-04 21:48 etc/
...

bin has the expected timestamp, etc does not.

  • BuildKit: master 092e977
  • runc v1.1.4
  • Ubuntu 22.04 (kernel 5.15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants