Étiquette : Portainer

  • Add Portainer Edge Agent to Synology

    Add Portainer Edge Agent to Synology

    To add the Portainer Edge Agent to your synology NAS

    Bash
    docker run -d \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /volume1/@docker/volumes:/var/lib/docker/volumes \
    -v /:/host \
    -v portainer_agent_data:/data \
    --restart always \
    -e EDGE=1 \
    -e EDGE_ID=YOURSECRETID \
    -e EDGE_KEY=YOURSECRETKEY \
    -e CAP_HOST_MANAGEMENT=1 \
    --name portainer_edge_agent \
    portainer/agent
  • Add Portainer Edge Agent to Docker Desktop Windows 11

    Add Portainer Edge Agent to Docker Desktop Windows 11

    If you want to connect your portainer to a Portainer Server, you will have to adapt your code to windows

    Bash
    docker run -d \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /var/lib/docker/volumes:/var/lib/docker/volumes \
    --restart always \
    -e EDGE=1 \
    -e EDGE_ID=YOURID \
    -e EDGE_KEY=YOURKEY \
    -e EDGE_INSECURE_POLL=1 \
    --name portainer_edge_agent \
    portainer/agent:latest