[Solved] Docker builds started failing with "Container ID cannot be mapped to a host ID" error February 21, 2023 To solve this issue replace the docker file RUN command with below command RUN npm install --omit=dev \ && chown -R $ (id -u): $ (id -g) node_modules # workaround for https://github.com/npm/cli/issues/5900 #This has resolved my issue Read more