Skip to content

Can't build in Ubuntu Docker #314573

@umrashrf

Description

@umrashrf

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: Source
  • OS Version: macOS Tahoe 26.3

Steps to Reproduce:

  1. git clone https://github.com/umrashrf/vscode
  2. git fetch origin feature/docker && git checkout feature/docker
  3. docker build -t umrashrf/vscode:latest .

Dockerfile: https://github.com/umrashrf/vscode/blob/feature/docker/Dockerfile
.dockerignore: https://github.com/umrashrf/vscode/blob/feature/docker/.dockerignore

Log file:

[+] Building 120.8s (16/16) FINISHED                                                                                            docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                            0.1s
 => => transferring dockerfile: 1.28kB                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/ubuntu:latest                                                                                0.1s
 => [internal] load .dockerignore                                                                                                               0.0s
 => => transferring context: 78B                                                                                                                0.0s
 => [ 1/12] FROM docker.io/library/ubuntu:latest@sha256:f3d28607ddd78734bb7f71f117f3c6706c666b8b76cbff7c9ff6e5718d46ff64                        0.0s
 => => resolve docker.io/library/ubuntu:latest@sha256:f3d28607ddd78734bb7f71f117f3c6706c666b8b76cbff7c9ff6e5718d46ff64                          0.0s
 => [internal] load build context                                                                                                               1.6s
 => => transferring context: 1.50MB                                                                                                             1.2s
 => CACHED [ 2/12] WORKDIR /vscode                                                                                                              0.0s
 => [ 3/12] COPY . .                                                                                                                            9.0s
 => [ 4/12] RUN apt update && apt upgrade -y  && apt install -y build-essential g++ git libsecret-1-dev libx11-dev libxkbfile-dev libkrb5-dev  41.0s
 => [ 5/12] RUN virtualenv /vscode/venv                                                                                                         0.7s
 => [ 6/12] RUN echo "export PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:/vscode/venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/us  0.2s
 => [ 7/12] RUN pip install -U pip                                                                                                              2.4s
 => [ 8/12] RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash                                                 7.0s
 => [ 9/12] RUN /bin/bash -c "source /root/.nvm/nvm.sh && nvm install 24.11.0 && nvm use --delete-prefix 24.11.0"                               1.0s
 => [10/12] RUN echo "export PATH=/root/.nvm/versions/node/v24.11.0/bin:/root/.nvm/versions/node/v24.11.0/bin:/vscode/venv/bin:/usr/local/bin:  0.1s
 => [11/12] RUN npm install -g npm@11.13.0                                                                                                      7.2s
 => ERROR [12/12] RUN npm install                                                                                                              50.0s
------
 > [12/12] RUN npm install:
0.679 npm warn Unknown project config "disturl". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
0.679 npm warn Unknown project config "target". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
0.679 npm warn Unknown project config "ms_build_id". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
0.679 npm warn Unknown project config "runtime". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
0.679 npm warn Unknown project config "build_from_source". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
0.679 npm warn Unknown project config "timeout". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
1.989 npm warn skipping integrity check for git dependency ssh://git@github.com/microsoft/vscode-gulp-electron.git
3.135 npm warn deprecated yaeti@0.0.6: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
3.929 npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
4.280 npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
4.374 npm warn deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
4.376 npm warn deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
4.618 npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
4.619 npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
4.868 npm warn deprecated osenv@0.1.5: This package is no longer supported.
5.927 npm warn deprecated keygrip@1.1.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
6.352 npm warn deprecated is-data-descriptor@1.0.0: Please upgrade to v1.0.1
6.369 npm warn deprecated is-accessor-descriptor@1.0.0: Please upgrade to v1.0.1
6.451 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
6.970 npm warn deprecated glob@5.0.15: Glob versions prior to v9 are no longer supported
7.288 npm warn deprecated gulp-vinyl-zip@2.1.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
10.58 npm warn deprecated asar@3.0.3: Please use @electron/asar moving forward.  There is no API change, just a package name change
14.49 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
14.96 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
15.13 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7
15.18 npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5
15.30 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7
15.34 npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5
15.35 npm warn deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
15.39 npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
15.77 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7
15.79 npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5
15.94 npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
16.28 npm warn deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
17.09 npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported
17.17 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7
17.17 npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5
17.20 npm warn deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
17.42 npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5
17.42 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7
18.17 npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported
20.32 npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
25.81 npm warn deprecated sinon@12.0.1: 16.1.1
34.58 npm warn deprecated @azure/core-http@2.3.2: This package is no longer supported. Please migrate to use @azure/core-rest-pipeline
49.53 npm warn cleanup Failed to remove some directories [
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/@vscode/native-watchdog',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/@vscode/native-watchdog'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/@vscode/native-watchdog'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/@vscode/windows-mutex',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/@vscode/windows-mutex'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/@vscode/windows-mutex'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/@vscode/deviceid',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/@vscode/deviceid'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/@vscode/deviceid'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/@vscode',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/@vscode/native-watchdog'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/@vscode/native-watchdog'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/@vscode/windows-process-tree',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/@vscode/windows-process-tree/build'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/@vscode/windows-process-tree/build'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/native-is-elevated',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/native-is-elevated'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/native-is-elevated'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/kerberos',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/kerberos'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/kerberos'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/@vscode/windows-process-tree'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/@vscode/windows-process-tree'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/native-keymap',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/native-keymap'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/native-keymap'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ],
49.53 npm warn cleanup   [
49.53 npm warn cleanup     '/vscode/node_modules/node-pty',
49.53 npm warn cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/vscode/node_modules/node-pty'] {
49.53 npm warn cleanup       errno: -39,
49.53 npm warn cleanup       code: 'ENOTEMPTY',
49.53 npm warn cleanup       syscall: 'rmdir',
49.53 npm warn cleanup       path: '/vscode/node_modules/node-pty'
49.53 npm warn cleanup     }
49.53 npm warn cleanup   ]
49.53 npm warn cleanup ]
49.55 npm error code 1
49.55 npm error path /vscode/node_modules/@playwright/browser-chromium
49.55 npm error command failed
49.55 npm error command sh -c node install.js
49.55 npm error /vscode/node_modules/@playwright/browser-chromium/node_modules/playwright-core/lib/server/registry/index.js:1114
49.55 npm error       throw new Error(`ERROR: Playwright does not support ${descriptor.name} on ${import_hostPlatform.hostPlatform}`);
49.55 npm error             ^
49.55 npm error
49.55 npm error Error: ERROR: Playwright does not support chromium on ubuntu26.04-arm64
49.55 npm error     at Registry._downloadExecutable (/vscode/node_modules/@playwright/browser-chromium/node_modules/playwright-core/lib/server/registry/index.js:1114:13)
49.55 npm error     at Object._install (/vscode/node_modules/@playwright/browser-chromium/node_modules/playwright-core/lib/server/registry/index.js:536:28)
49.55 npm error     at Registry.install (/vscode/node_modules/@playwright/browser-chromium/node_modules/playwright-core/lib/server/registry/index.js:1025:26)
49.55 npm error     at async installBrowsersForNpmInstall (/vscode/node_modules/@playwright/browser-chromium/node_modules/playwright-core/lib/server/registry/index.js:1282:3)
49.55 npm error
49.55 npm error Node.js v24.11.0
49.56 npm error A complete log of this run can be found in: /root/.npm/_logs/2026-05-05T22_44_46_468Z-debug-0.log
------
Dockerfile:33
--------------------
  31 |
  32 |     RUN npm install -g npm@11.13.0
  33 | >>> RUN npm install
  34 |
  35 |     # ENTRYPOINT can not be overwritten
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions