nanobox-io/nanobox

Run Nanobox with root user

xdays opened this issue · 2 comments

xdays commented

We are running nanobox in container from gitlab ci.

$ curl -so - https://d1ormdui8qdvue.cloudfront.net/installers/v2/linux/nanobox-2.tar.gz | tar xzf - -C /
$ nanobox config set provider native

--------------------------------------------------------------------------------
+ ERROR:
+ Nanobox is designed to run as a standard user (non root)
+ Please run all nanobox commands as a non privileged user
--------------------------------------------------------------------------------

ERROR: Job failed: exit code 1

Is there any way to override this option?

There is a CI mode setting you can use. The CI section of our docs covers that option fairly well.

xdays commented

Thanks for your remind, I just find the correct sequence to run these commands:

nanobox configure set ci-mode true
nanobox configure set provider native