Fails to start rootless container with bypass4netns after reboot: failed to allocate for range 0: 10.4.1.3 has been allocated to default-XXXXXXX, duplicate allocation is not allowed
#2933
Labels
Description
I have rootless container installed with bypass4netns.
When I reboot the machine, the container fails to restart.
The only way to get it working is,
nerdctl compose down && nerdctl compose up -d
.Steps to reproduce the issue
paru -S nerdctl buildkit cni-plugins rootlesskit slirp4netns bypass4netns
containerd-rootless-setuptool.sh install
containerd-rootless-setuptool.sh install-bypass4netnsd
nerctl compose up -d
containerd
user service / rebootThe container isn't started as expected.
In the output of
nerdctl ps -a
, the status isCreated
. All restart policies make no difference here, simply fails or repeating the same error.here's the compose file:
Describe the results you received and expected
The container should start normally, just like without bypass4netns.
What version of nerdctl are you using?
v1.7.5.
v2.0.0.beta.4.r6.33f6ae2b (edit compose file accordingly)
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: