Skip to content

Add support for time namespace#1062

Closed
KentaTada wants to merge 0 commit into
opencontainers:mainfrom
KentaTada:add-time-namespace
Closed

Add support for time namespace#1062
KentaTada wants to merge 0 commit into
opencontainers:mainfrom
KentaTada:add-time-namespace

Conversation

@KentaTada

Copy link
Copy Markdown
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

tianon commented Aug 13, 2020

Copy link
Copy Markdown
Member

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

@KentaTada

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

@utam0k

utam0k commented Jun 20, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown
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