hercules-ci / arion

Run docker-compose with help from Nix/NixOS
Apache License 2.0
631 stars 47 forks source link

Restarting arion appears to cause some docker compose related networking error #197

Closed jappeace closed 1 year ago

jappeace commented 1 year ago
$ arion up
trace: warning: The check argument to evalModules is deprecated. Please set config._module.check instead.
trace: warning: system.stateVersion is not set, defaulting to 23.05. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion.
trace: Obsolete option `boot.tmpOnTmpfs' is used. It was renamed to `boot.tmp.useTmpfs'.
trace: warning: The option `boot.tmpOnTmpfs' defined in `/nix/store/1qzbskflfba86xq2avphpzvf9fyl5hh1-source/pkgs/top-level/all-packages.nix' has been renamed to `boot.tmp.useTmpfs'.
this derivation will be built:
  /nix/store/asqkwfr6gxpf2w03rwlnrd6vjfb0kl5j-docker-compose.yaml.drv
building '/nix/store/asqkwfr6gxpf2w03rwlnrd6vjfb0kl5j-docker-compose.yaml.drv'...
/nix/store/87sizyifr3ikpbpadbqbk7a56awlkp6r-docker-compose.yaml
ERROR: Network "trees_default" needs to be recreated - option "isolate" has changed

I can work around this by renaming the project, eg trees1, trees2 etc.

  config.project.name = "trees4";

Still it's quite annoying.

roberth commented 1 year ago

What is your podman version?

jappeace commented 1 year ago
podman version 4.2.0
roberth commented 1 year ago

NixOS 23.05 should hopefully fix this problem then.

jappeace commented 1 year ago

okay, I'll upgrade, see if it works

jappeace commented 1 year ago

That fixed it, thanks!

(on a side note, only took an hour to do an upgrade from 22.05 to 23.05, surprisingly easy)!