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

Getting rancher as docker to work #272

Open
gcraenen opened this issue May 11, 2022 · 1 comment
Open

Getting rancher as docker to work #272

gcraenen opened this issue May 11, 2022 · 1 comment

Comments

@gcraenen
Copy link

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?

@techie2000
Copy link

Hi @gcraenen I don't think your issue report is actually an 'issue' with the software. See #277 and perhaps consider closing this (none) issue?

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