Portainer Refuses to make a stack

Hello!!

I have installed Portainer on Bazzite with podman using this command:

# Start rootless podman socket
systemctl --user enable --now podman.socket

# enable start of system services, even if not logged in
sudo loginctl enable-linger $USER

# Start portainer rootless
podman run \
  --detach \
  -p 9444:9443 \
  --name portainer \
  --security-opt label=disable \
  --restart always \
  --volume /run/user/$(id -u)/podman/podman.sock:/var/run/docker.sock \
  --volume portainer_data:/data \
  docker.io/portainer/portainer-ce

And it works, but when I try to make my stack (which I know works, it’s from my previous server), I get this error:

image

(Failed to deploy a stack: compose up operation failed: Error response from daemon: make cli opts(): making volume mountpoint for volume /var/run/docker.sock: mkdir /var/run/docker.sock: permission denied)

Does anyone know how I could fix this? I am new to Bazzite :slight_smile:

Thank you!!!

This is a portainer config issue I believe. The hint is the various mentions of docker but you are spinning it up using podman.

There is a page devoted to this in the portainer docs:

Try following those and see if that helps.

Getting a permission error there too :frowning:

That’s what happened when I tried it last time as well, I found this Github Issue where someone found the answer, which was to run it like I did the first time :confused: Any ideas?

I haven’t used portainer in many years and when I did it was on Raspberry Pi. I have since moved to OMV and have not had a need for anything else.

On bluefin-dxI use docker and podman cli exclusively.

My guess is that you are still using portainer for the templates - is that right?

If it was me (using bluefin-dx where docker is pre-installed) I would just spin it up in a docker container. We know the portainer project supports that well.

I know bazzite maintainers are working on -dx bootc images for bazzite (that also pre-installs docker) but I have no idea how far along they are.

It does look promising in the underlying github repo linked to below.

WARNING: if you have another machine to experiment on I would do it there. I would not experiment on the machine on which I rely.

I hope that helps - even a little.

1 Like

Thank you for the extensive reply :slight_smile:

I honestly am really new to bluefin stuff, I have only used Truenas and Debian Server before where I just sudo apt get installed Docker and then ran Portainer, so I am a little bit lost…

I have a big docker-compose yaml and just find it easier to manage through Portainer, but all I can find surrounding Bazzite is that I am supposed to use Quadlet, I found this thread, do you think it would help?

Again, thank you for all the help :slight_smile: If there is any other management software other than Portainer that would be easier for my situation I could also consider that, I feel like it could be overkill to install the -dx stuff just for portainer…

Found out that Bazzite has Distrobox built in, perhaps it could help?

Tried the thread and got stuck here instead :confused:

image

Tried following the official Bazzite tutorial but replacing it with the Portainer one and that didn’t help at all

this command may be working

 sudo podman run -d -p 1200:9000 --name portainer --restart=always --replace --privileged -v /run/podman/podman.sock:/var/run/docker.sock portainer/portainer-ce:sts

update: no, it gets farther but the containers aren’t working properly :frowning:

Also tried -dx, unfurtunately they don’t have an image for my older nvidia card…