#1506·OpenMAIC

[Bug]: local build docker image failed

Author: f39516046Created Sep 15, 2026Updated Sep 18, 2026
Labelsbug

Bug Description

execute build cmd as below:

docker build --build-arg ALPINE_MIRROR=mirrors.tuna.tsinghua.edu.cn --build-arg NPM_REGISTRY=https://registry.npmmirror.com -t openmaic:local .

can not build successfully.

build error message:

200.5  EPERM  EPERM: operation not permitted, write 200.5 200.5 200.5

Dockerfile:38

37 |
38 | >>> RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store
39 | >>> npm_registry="$NPM_REGISTRY";
40 | >>> while [ "${npm_registry%/}" != "$npm_registry" ]; do
41 | >>> npm_registry="${npm_registry%/}";
42 | >>> done;
43 | >>> if [ -n "$npm_registry" ]; then
44 | >>> pnpm config set registry "$npm_registry";
45 | >>> fi &&
46 | >>> pnpm install --frozen-lockfile 47 |

ERROR: failed to solve: process "/bin/sh -c npm_registry="$NPM_REGISTRY"; while [ "${npm_registry%/}" != "$npm_registry" ]; do npm_registry="${npm_registry%/}"; done; if [ -n "$npm_registry" ]; then pnpm config set registry "$npm_registry"; fi && pnpm install --frozen-lockfile" did not complete successfully: exit code: 255

Steps to Reproduce

  1. git clone
  2. docker build --build-arg ALPINE_MIRROR=mirrors.tuna.tsinghua.edu.cn --build-arg NPM_REGISTRY=https://registry.npmmirror.com -t openmaic:local .
  3. failed

Expected Behavior

build successfully

Actual Behavior

200.5  EPERM  EPERM: operation not permitted, write 200.5 200.5 200.5

Dockerfile:38

37 |
38 | >>> RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store
39 | >>> npm_registry="$NPM_REGISTRY";
40 | >>> while [ "${npm_registry%/}" != "$npm_registry" ]; do
41 | >>> npm_registry="${npm_registry%/}";
42 | >>> done;
43 | >>> if [ -n "$npm_registry" ]; then
44 | >>> pnpm config set registry "$npm_registry";
45 | >>> fi &&
46 | >>> pnpm install --frozen-lockfile 47 |

ERROR: failed to solve: process "/bin/sh -c npm_registry="$NPM_REGISTRY"; while [ "${npm_registry%/}" != "$npm_registry" ]; do npm_registry="${npm_registry%/}"; done; if [ -n "$npm_registry" ]; then pnpm config set registry "$npm_registry"; fi && pnpm install --frozen-lockfile" did not complete successfully: exit code: 255

Deployment Method

Docker

OpenMAIC Version

latest

Affected Area

Deployment / infrastructure

Browser

NONE

Operating System

ubuntu

Relevant Logs

bash
200.5  EPERM  EPERM: operation not permitted, write
200.5 
200.5 
200.5 
------
Dockerfile:38
--------------------
  37 |     
  38 | >>> RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store \
  39 | >>>     npm_registry="$NPM_REGISTRY"; \
  40 | >>>     while [ "${npm_registry%/}" != "$npm_registry" ]; do \
  41 | >>>       npm_registry="${npm_registry%/}"; \
  42 | >>>     done; \
  43 | >>>     if [ -n "$npm_registry" ]; then \
  44 | >>>       pnpm config set registry "$npm_registry"; \
  45 | >>>     fi && \
  46 | >>>     pnpm install --frozen-lockfile
  47 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c npm_registry=\"$NPM_REGISTRY\";     while [ \"${npm_registry%/}\" != \"$npm_registry\" ]; do       npm_registry=\"${npm_registry%/}\";     done;     if [ -n \"$npm_registry\" ]; then       pnpm config set registry \"$npm_registry\";     fi &&     pnpm install --frozen-lockfile" did not complete successfully: exit code: 255

Screenshots or Recordings

No response

Additional Context

No response