Open GWspekulatius opened 3 years ago
My first guess is that docker
and docker-compose
talk to different engines.
Did you enable dockerCompat
[in NixOS] instead of virtualisation.podman.dockerSocket.enable
by any chance? I don't think I've tested that scenario and I suspect it may break like this.
Hi Robert, these look like NixOS flags to me. As i am just getting started with my Nix endeavours, i havent made the transition to NixOS yet and am still on normal Ubuntu. so i dont think i can use these flags. So far I have created symbolic links to trick arion into using podman instead of docker. one link for the binary and another one for the unix socket which is what the nix flags do.
I see. Arion talks to the docker
and docker-compose
on PATH
. As long as those agree about the runtime, I wouldn't expect to see a problem like this. Given that it's Ubuntu, it's quite possible that I haven't tested with its versions of podman and friends.
Could you check that docker
and docker-compose
talk to the same engine?
i set up a completely new Ubuntu VM, installed only nix, arion, podman and docker-compose (so no docker). so they must be using the podman engine. i do the symlinks and change some permissions but eventually i end up at the described exception where i don't know how to continue.
in case anyone wants to reproduce this on ubuntu 21.04:
i installed podman manually via https://build.opensuse.org/package/show/devel:kubic:libcontainers:stable/podman because its a newer version than the one on apt.
symlink for the docker binary:
ln -s /usr/bin/podman docker
(start arion with PATH=./:$PATH arion up
)
symlink for the docker unix socket:
sudo ln -s /run/podman/podman.sock /run/docker.sock
add permissions:
sudo chmod -R 755 /run/podman/
Hi, i am trying to use the minimal webserver from documentation arion-compose.nix:
arion-pkgs.nix:
with Arion and Podman 3.2.2. on Ubuntu 20.04., getting this error when doing
arion up
:Anyone has any clue what this means? Is this caused by a false configuration in my system or is this an arion issue?