Subject: [bug#77578] [PATCH] tests: docker-system: Use only guix-daemon service.

From: Ludovic Courtès <[email-masked]>
Date: Wed, 16 Apr 2025 16:39:13 +0200

Hi Oleg,

Oleg Pykhalov <[email-masked]> writes:

> Ludovic Courtès <[email-masked]> writes:
>
>> Oleg Pykhalov <[email-masked]> skribis:
>>
>>> The test run-docker-system-test was hanging on:
>>>
>>> (docker-cli "exec" container
>>>              "/run/current-system/profile/bin/herd"
>>>              "status")
>>>
>>> This occurred because %test-docker-system specified more services than
>>> gnu/system/examples/docker-image.tmpl, which may have caused conflicts or
>>> unexpected behavior.
>>>
>>> * gnu/tests/docker.scm (%test-docker-system): Simplify by using only the
>>> guix-daemon service to prevent test hangs.
>>
>> It’s not clear to me why ‘herd status’ was blocking in the first
>> place—it’s never supposed to happen.  Do you have ideas?
>
> The docker create command creates a container with a limited set of
> privileges by default. These default privileges are insufficient for
> certain configuration tasks such as networking setup or hostname
> configuration.

Oh I see.  Then, what about changing the patch to (1) specifically
remove the one or two services that are problematic, and (2) have the
above in a comment?

Thanks for explaining,
Ludo’.

PS: Would be great to have support for CNI and all this!