Skip to content

Rancher must be ran with the --privileged flag #129

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

Closed
ryoryotaro opened this issue Oct 8, 2020 · 3 comments
Closed

Rancher must be ran with the --privileged flag #129

ryoryotaro opened this issue Oct 8, 2020 · 3 comments

Comments

@ryoryotaro
Copy link

Hi,all.

I used the Vagrant Quick Start with virtualbox.

After vagrant up command following logs appeared endlessly.

    server-01: + docker run --rm --net=host appropriate/curl -sLk https://127.0.0.1/ping
    server-01: + sleep 5
    server-01: + true

I logged in the server-01 and looked rancher container log with docker logs command.

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

So, I changed configure_rancher_server.sh to use privileged mode.

docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged -v /opt/rancher:/var/li    b/rancher rancher/rancher:${rancher_version}

It worked fine !

Has privileged mod been need to run in v2.5.x ?

@inductor
Copy link

@nikkelma
Copy link
Contributor

You're correct, the Vagrant quickstart was pulling in the latest tag instead of stable and therefore required the --privileged flag, the above merged PR moves the Vagrant quickstart to stable instead which allows running the Vagrant quickstart without any further modifications. Will close only after feedback, can even leave this open if we want to move this focus to the changes needed to support 2.5.

@Dean-Coakley
Copy link
Contributor

@nikkelma This can be closed as it was done in: #143 ?

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

5 participants