Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running on a Synology NAS Docker #188

Open
YueMiyuki opened this issue Jun 1, 2021 · 1 comment
Open

Error when running on a Synology NAS Docker #188

YueMiyuki opened this issue Jun 1, 2021 · 1 comment

Comments

@YueMiyuki
Copy link

YueMiyuki commented Jun 1, 2021

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?

@MadsBen
Copy link

MadsBen commented Jun 28, 2022

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants