Thanks @DilaraOflaz for the deep investigation of the root cause.
The problem appeared when 2 ktd commands are run simultaneously and the dev network did
not exist prior to the commands being run. Then each command mawy create the network
separately, without the docker daemon complaining about it.
Note that this may not fix 100% of cases (both networks might end up being removed) but at least it will leave the system in a state where retrying will work.
Thanks @DilaraOflaz for the deep investigation of the root cause.
The problem appeared when 2 ktd commands are run simultaneously and the dev network did not exist prior to the commands being run. Then each command mawy create the network separately, without the docker daemon complaining about it.
Note that this may not fix 100% of cases (both networks might end up being removed) but at least it will leave the system in a state where retrying will work.