Skip to content

tsc --watch does not work in dockerΒ #63646

Description

@laverdet

πŸ”Ž Search Terms

docker devcontainer tsc7

πŸ•— Version & Regression Information

  • This changed between versions v6.0.2 and v7.0.2

⏯ Playground Link

No response

πŸ’» Code

No response

πŸ™ Actual behavior

tsc --watch simply does not work on any of my projects in the new Go build. It will do an initial build but after that it notices no changes.

Docker: Version 4.81.0
macOS: 15.7.7 (24G720)
uname -a (in container): Linux docker-desktop 6.12.76-linuxkit #1 SMP Thu Jun 25 13:45:40 UTC 2026 aarch64 GNU/Linux

I am using a straightforward bind mount: "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",

I can confirm that the Docker container is receiving filesystem events via entr:

root[17:26:39] [/workspace] $ echo package.json | EV_TRACE=1 entr echo 123
open_max: 1048576
123
0/1: fflags: 0xa r 100644 package.json
123
0/1: fflags: 0xa r 100644 package.json
123

If I add --cap-add=SYS_ADMIN I receive a diagnostic from tsc, but still no watch success:

fanotify_mark on '/workspace/node_modules/.pnpm/redis@5.12.1' failed: name_to_handle_at: operation not supported

πŸ™‚ Expected behavior

It should watch files for changes.

Additional information about the issue

I have tried VirtioFS and gRPC FUSE.

I have tried Docker VMM and Apple Virtualization framework.

I also tried a bunch of watchOptions configurations but those didn't seem to have any effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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