hercules-ci / arion

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

Using arion and docker on the same host #121

Closed lunik1 closed 3 years ago

lunik1 commented 3 years ago

I have a machine with a mix of docker-compose and arion stacks. Previously this was not an issue as both used docker, but now that podman is required for NixOS-based containers I am not clear how to have both on the same host. I can't set virtualisation.docker.enable and virtualisation.podman.dockerSocket.enable. Will setting only the latter still allow my existing docker containers to function correctly?

roberth commented 3 years ago

Simultaneous Docker and Podman should run just fine.

If you still need docker as the backend for some containers, you can leave the default virtualisation.podman.dockerSocket.enable = false;. Then, for your arion-based projects you can then use environment variable DOCKER_HOST=unix:///run/podman/podman.sock to select Podman.

lunik1 commented 3 years ago

Seems to be working for me, thanks for the pointers!