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

chown operation not permitted when running container with new user #43

Closed
shaileshpandey11 opened this issue Aug 26, 2016 · 2 comments
Closed

Comments

@shaileshpandey11
Copy link

Command in DockerFile:
RUN chown -R tms /usr/local/tomcat/webapps/webservices-0.0.1-20160824.053225-11.war

Log:
Step 13 : RUN chown -R tms /usr/local/tomcat/webapps/webservices-0.0.1-20160824.053225-11.war
---> Running in 9855537059c2
chown: changing ownership of ‘/usr/local/tomcat/webapps/webservices-0.0.1-20160824.053225-11.war’: Operation not permitted

@yosifkit
Copy link
Member

What does the rest of your Dockerfile look like? If you have a USER line previously that is not root, then that user probably won't have permission to chown the file.

@shaileshpandey11
Copy link
Author

Thanks @yosifkit i was doing wrong after creating USER previously. I have changed that and now it's working.

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