Skip to content

Getting rancher as docker to work #272

@gcraenen

Description

@gcraenen

Hello,

I'm trying to add the rancher server instance to this docker setup (which is working great) and cannot succeed. Here is my setup, which is added to the docker-compose-ts yml file:

rancher:
image: rancher/rancher:latest
container_name: rancher
restart: unless-stopped
networks:
- t2_proxy
#ports:
# - 81:80
# - 440:443
volumes:
- $DOCKERDIR/appdata/rancher:/var/lib/rancher
command:
-- privileged
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.rancher-rtr.entrypoints=https"
- "traefik.http.routers.rancher-rtr.rule=Host(rancher.$DOMAINNAME0)"
## Middlewares
# - "traefik.http.routers.rancher-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.rancher-rtr.service=rancher-svc"
- "traefik.http.services.rancher-svc.loadbalancer.server.port=80"

The error I'm seeing in the log is that the --privileged flag must be set when running rancher outside of kubernetes. I thought I had this covered with the command statement.

Maybe someone got this running and has a tip?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions