Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.
OS Name/Version: EndeavourOS
Product Name/Version: AMP Release “Decadeus” v2.4.6, built 09/08/2023 17:53
Problem Description: Cannot make containers useing podman, i have podman setup with all the proper files for docker tools to use podman instead. but when i try to start the containers i get an error:
LIM - Failure to make API call to CONTAINER_NAME: Connection refused
Steps to reproduce:
- podman rootless setup:
https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md - systemctl --user enable --now podman.socket
- ln -s /run/user/1000/podman/podman.sock /var/run/docker.sock
- Start instance and get LIM error
Actions taken to resolve so far:
trying to enable the podman.socket for the amp user
[amp@stinkdesk ~]$ systemctl --user enable podman.socket
Failed to connect to bus: No medium found
trying to use --global flag for systemctl
sudo systemctl --global enable --now podman.socket
[sudo] password for james:
Created symlink /etc/systemd/user/sockets.target.wants/podman.socket → /usr/lib/systemd/user/podman.socket.
–global is not supported for this operation.
Disable podman.socket:
$ sudo systemctl disable --now podman.socket
$ sudo systemctl --user disable --now podman.socket
remove docker.sock:
$ sudo rm /var/run/docker.sock
enable global podman.socket ignore error about global not working:
$ sudo systemctl --user enable --now podman.socket
may need to reboot at this step
link rootless docker to rootless podman:
$ ln -s /run/user/1000/podman/podman.sock /run/user/1000/docker.sock
now do the same for amp user:
$ sudo su -l amp
$ ln -s /run/user/1001/podman/podman.sock /run/user/1001/docker.sock
$ exit
export docker_host:
$ export DOCKER_HOST=$XDG_RUNTIME_DIR/docker.sock
and this with no success
$ export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock