This message was deleted.
# rancher-desktop
a
This message was deleted.
f
You should be able to restart the existing container with
nerdctl start ...
, but I found there is a bug in nerdctl which throw an error when you do that: Cannot start previously stopped containers (
plugin type=\"bridge\" failed (add): failed to allocate for range 0: 10.4.0.4 has been allocated to default-XXXX, duplicate allocation is not allowed"
) · Issue #665 · containerd/nerdctl
It is probably going to work if you switch the container engine from "containerd" to "moby" and use the
docker
cli instead.
Another thing to do would be to use
--restart=always
, so the container restarts automatically when you restart Rancher Desktop. I haven't tested it yet, so I don't know if this would run into the same issue with
nerdctl
or not.
Using
--restart=always
seems to also bypass the
nerdctl
issue about restarting containers. We have updated the documentation now.
m
works as a charm now, thank Jan!