Cannot create folder in WORKDIR
duongsieu opened this issue · 3 comments
duongsieu commented
I can not run composer i or mkdir folder in docker container. It show message: permisson define. I change user to root then can create but php-fpm.sock error. Please help me
TrafeX commented
Hi @duongsieu,
You should be able to create folder in the /var/www/html folder since that folder is owned by the nobody user (as long as this folder isn't mounted to a different filesystem).
You can also temporary switch to root and back to nobody after you have set the correct permissions, example;
FROM trafex/php-nginx
USER root
RUN mkdir /some/folder
USER nobodyTrafeX commented
I assume this issue is resolved. If not, please let me know!
sieu-duong commented
@TrafeX thanks your support. I resolved issue