agent icon indicating copy to clipboard operation
agent copied to clipboard

Error when running on a Synology NAS Docker

Open YueMiyuki opened this issue 4 years ago • 1 comments

I was trying to launch Portainer Agent latest on a synology nas docker but i got this error: [ERROR] [main,docker] [message: Unable to retrieve information from Docker] [error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Any solutions?

YueMiyuki avatar Jun 01 '21 07:06 YueMiyuki

Old issue, but this is my compose-file for agent on Synology.

  agent:
    image: portainer/agent
    container_name: portainer_agent
    environment:
      AGENT_PORT: 9001
    ports:
      - 9001:9001
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /volume1/@docker/volumes:/var/lib/docker/volumes
    restart: always

Replace "volume1" with whatever volume your Synology docker app is installed on. You can locate the folder with this command: echo "$(sudo docker info --format '{{.DockerRootDir}}')/volumes"

MadsBen avatar Jun 28 '22 14:06 MadsBen