On 07/18/2017 10:29 AM, Mark Petrovic wrote:
> When I start a container thusly, with the rkt run --debug flag, I see
> rkt announce that it is using systemd v234 in the container (at least I
> think that's what the announcement means, late in the console output).
This output is from the stage1; effectively it's from `systemd-nspawn
--boot`.
This information should be correct for your given stage1 image.
> But when I enter the container and execute 'systemctl --version',
> systemd v215 is reported. I expected to have systemd v234 reported.
This is output from the stage2; the application image.
Presumably whatever application image you specified (maybe
docker://debian?) includes a copy of systemctl as well.
I'll refer to the execution chain diagram here:
https://github.com/rkt/rkt/blob/v1.27.0/Documentation/devel/architecture.md#execution-chain
The boxes labeled "stage2" are full mount namespaces. In those mount
namespaces, you can't interact with the binaries in the stage1.
Whatever binaries/libraries are used there are unrelated to either the
host or stage1.
Hopefully that clarifies what you're seeing,
Euan