Docker run throws Error: EPERM: operation not permitted, mkdir '/app/node_modules'

Open
#118 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, docker, node.js
Domain
devops, mobile-dev

Research direction

No file or test is named. Start by reproducing sudo docker run docker-android, then run cd app and npm install in the container while inspecting the image configuration and /app permissions. Done means identifying and documenting a reproducible fix for creating /app/node_modules.

Written by the indexing model from the issue text.

Description

While running
sudo docker run docker-android
cd app
npm install

throws this following error. By default it supposed to be root user. any idea why permission is still denied?!
Docker os : Ubuntu


errno -1
npm ERR! Error: EPERM: operation not permitted, mkdir '/app/node_modules'
npm ERR!  [OperationalError: EPERM: operation not permitted, mkdir '/app/node_modules'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, mkdir '/app/node_modules'] {
npm ERR!     errno: -1,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'mkdir',
npm ERR!     path: '/app/node_modules'
npm ERR!   },
Dominant language
Dockerfile
Stars
541
Forks
152
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-native-community/docker-android

All issues in react-native-community/docker-android

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.