How to give folder permissions inside a docker container Folder

I guess you are switching to user “admin” which doesn’t have the ownership to change permissions on /app directory. Change the ownership using “root” user. Below Dockerfile worked for me – FROM python:2.7 RUN pip install Flask==0.11.1 RUN useradd -ms /bin/bash admin COPY app /app WORKDIR /app RUN chown -R admin:admin /app RUN chmod 755 … Read more

Cannot open backup device. Operating System error 5

Yeah I just scored this one. Look in Windows Services. Start > Administration > Services Find the Service in the list called: SQL Server (MSSQLSERVER) look for the “Log On As” column (need to add it if it doesn’t exist in the list). This is the account you need to give permissions to the directory, … Read more

Github permission denied: ssh add agent has no identities

Full details in this answer. In summary, when ssh-add -l returns “The agent has no identities”, it means that keys used by ssh (stored in files such as ~/.ssh/id_rsa, ~/.ssh/id_dsa, etc.) are either missing, they are not known to ssh-agent, which is the authentication agent, or that their permissions are set incorrectly (for example, world writable). … Read more

Permission denied on accessing host directory in Docker

See this Project Atomic blog post about Volumes and SELinux for the full story. Specifically: This got easier recently since Docker finally merged a patch which will be showing up in docker-1.7 (We have been carrying the patch in docker-1.6 on RHEL, CentOS, and Fedora). This patch adds support for “z” and “Z” as options … Read more

Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’

Change your file permissions… Like this First check who owns the directory ls -la /usr/local/lib/node_modules it is denying access because the node_module folder is owned by root drwxr-xr-x 3 root wheel 102 Jun 24 23:24 node_modules so this needs to be changed by changing root to your user but first run command below to check … Read more