You are using systemd-nspawn to run a container. You notice the container does not have access to the host's system clock. Which flag must be added to the command to allow access to the system time?
Trap 1: --share-system
This is not a valid systemd-nspawn flag.
Trap 2: --clock-passthrough
This flag does not exist in systemd-nspawn.
Trap 3: --bind=/dev/rtc
Binding the RTC device is not the standard way to manage container time synchronization.
- A
--share-system
Why wrong: This is not a valid systemd-nspawn flag.
- B
--clock-passthrough
Why wrong: This flag does not exist in systemd-nspawn.
- C
--bind=/dev/rtc
Why wrong: Binding the RTC device is not the standard way to manage container time synchronization.
- D
--capability=CAP_SYS_TIME
CAP_SYS_TIME is required to allow a container to adjust the system clock.