You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run -u 12345 --rm -ti natsio/nats-box:0.14.2 sh -c "id && pwd && cd /root"
uid=12345 gid=0(root) groups=0(root)
/
sh: cd: line 0: can't cd to /root: Permission denied
Given the capability you are leveraging, describe your expectation?
The working dir set in Dockerfile https://github.com/nats-io/nats-box/blob/main/Dockerfile#L54 should not be /root, because in production environment, images are launched as non root. Instead, the working dir should be agnostic of that, by example by setting it to /tmp.
Given the expectation, what is the defect you are observing?
Deployment of nats-box in error. Logs says permission denied for /root.
The text was updated successfully, but these errors were encountered:
What version were you using?
nats helm chart 1.1.10
What environment was the server running in?
Kubernetes OpenShift
Is this defect reproducible?
Yes
Given the capability you are leveraging, describe your expectation?
The working dir set in Dockerfile https://github.com/nats-io/nats-box/blob/main/Dockerfile#L54 should not be /root, because in production environment, images are launched as non root. Instead, the working dir should be agnostic of that, by example by setting it to /tmp.
Given the expectation, what is the defect you are observing?
Deployment of nats-box in error. Logs says permission denied for /root.
The text was updated successfully, but these errors were encountered: