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

Add support for time namespace #1062

Closed
wants to merge 0 commits into from

Conversation

KentaTada
Copy link
Contributor

The time namespace is a new kernel feature available in 5.6+ to
isolate the system monotonic and boot-time clocks.

Signed-off-by: Kenta Tada Kenta.Tada@sony.com

@tianon
Copy link
Member

tianon commented Aug 13, 2020

I think it's worth linking to opencontainers/runc#2345, which has some related discussion.

@KentaTada
Copy link
Contributor Author

@tianon Thanks!
I want to support time namespace both runc and our container runtime.
In any case, I think runtime-spec should be updated at first.

@giuseppe
Copy link
Member

I think this is not enough, it is necessary also to specify a value for timens_offsets.

@KentaTada KentaTada force-pushed the add-time-namespace branch 2 times, most recently from a2e38fa to 6ffc520 Compare August 18, 2020 14:27
@KentaTada
Copy link
Contributor Author

I think this is not enough, it is necessary also to specify a value for timens_offsets.

You are right. I added the offset.

@m-yosefpor
Copy link

Currently running uptime command in a container shows host uptime, instead of container uptime. Will time namespace solve this issue?

@utam0k
Copy link
Member

utam0k commented Jun 20, 2022

Hi, everyone. What is the status of this PR? lxd has supported for Time namespace. I think some runtimes can support it.
opencontainers/runc#2345

@KentaTada
Copy link
Contributor Author

I'm sorry I mistook and closed this request.
Please see #1151

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

Successfully merging this pull request may close these issues.

5 participants