-->

Saturday, May 4, 2024

[Solved] ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes

 Error:-

While running rancher docker container on the ubuntu server, i saw the container crashing very frequently. After checking the logs saw the following error happening very frequently


docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest
ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes


Cause:-

When you are installing the rancher in test environment where you dont need the identity verification using ssl than it becomes essential you pass the --privileged flag. 


Solution :-

Run the following command to overcome the issue

docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged rancher/rancher:latest

0 comments:

Post a Comment