Portainer docker socket
first of all please be patient with me as I do have only basic basic command line experience.
just installed homarr and I have no idea how to "integrate" my containers to add them on my dashboard.
I am running a VM with Ubuntu 22.04 with installed docker and a container with portainer. As well I do have 2 other containers on docker. As well the homarr container.
My Stack has following setting:
version: '3'
#---------------------------------------------------------------------#
Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- /home/user/docker/homarr/configs:/app/data/configs
- /home/user/docker/homarr/icons:/app/public/icons
ports:
- '7575:7575'
But if I click on the Docker icon I can't see any containers.
What am I missing, please?
9 Replies
Have you taken a look at the doc?
https://homarr.dev/docs/about
Yes I did...but do not know how to add the command => In order for Homarr to be able to interact with your Docker instance you must tell Homarr the path to your Docker socket. You do this by adding the following to the Docker command when you first run Homarr:
-v /var/run/docker.sock:/var/run/docker.sock
That might be done differently in portainer. I suggest you google "Portainer docker.sock"
The command you took needs to be set in the volumes part of your stack
@Manicraft1001 @Tag I just made a small PR regarding that, I've added the mention of the docker socket directly on the page : https://github.com/ajnart/homarr-docs/pull/82
GitHub
Update installation.mdx by ajnart · Pull Request #82 · ajnart/homar...
Add docker socket info
I did now follow this guide https://docs.portainer.io/admin/environments/add/docker/socket where I am not sure if I need to add the socket path to /var/run/docker.sock (which is showing up on my initial enviroments or as shown in the doc to /var/run/docker-alt.sock
Which of them exists, @mame ? if /var/run/docker.sock exists, choose this one. It's usually located in this path
/var/run/docker.sock exists and I have set it as per the posted guide. Unfortunately still no containers show up in homarr 😦
Anything in the log?
Tried the other socket?
Did you search for some basic troubleshooting for accessing the docker socket in Portainer?
I checked the log from my homarr container and can't see anything like an error message. I also tried the other socket, but with the -alt is throw an error. I searched with the following wording "homarr troubleshooting for accessing the docker socket in Portainer" but ended up in the guide i posted