Troubleshooting
Why a Linux Docker container cannot open the WinCC Unified PC OpenPipe
Short answer
WinCC Unified PC Runtime exposes OpenPipe as a Windows named pipe, and a Linux Docker container has no path to it: changing backslashes to slashes does not turn \\.\pipe\HmiRuntime into a Linux pathname. Use a Windows container, or put a bridge that exposes an OpenPipe-compatible Linux-side endpoint, and test mount errors and connection refusals separately.
On this page
- What OpenPipe is and what each endpoint name means
- Read the two symptoms separately
- Isolate the layer: host, engine, container, client
- Worked example: why each variant fails
- Expose a compatible endpoint to the Linux container
- Verify transport and OpenPipe behavior after the fix
- The decision for each case
- Questions asked
A Linux Docker container cannot open the Windows named pipe that WinCC Unified PC Runtime exposes for OpenPipe, and no amount of quoting or slash-swapping changes that. The pipe name under Windows is \\.\pipe\HmiRuntime; on a Linux system the runtime-side path is a Linux pathname such as /tempcontainer/HmiRuntime inside the container environment. Your Node.js client connecting directly on the Windows host proves the runtime endpoint itself works. The failure is at the container boundary: a Linux container has no view of Windows kernel pipe objects. Fix it by running a Windows container, or by putting a host-side bridge that exposes an OpenPipe-compatible Linux endpoint, then test mount errors and connection refusals as separate problems.
What OpenPipe is and what each endpoint name means #
Open Pipe is the openness interface of WinCC Unified that lets an external program connect to the runtime, send requests and receive responses over a pipe endpoint. The endpoint name depends on the operating system the runtime runs on:
- Under Windows:
\\.\pipe\HmiRuntime, a Windows named pipe, which is a kernel communication object with no representation in any file system a Linux process can traverse. - Under Linux: a Linux-side path such as
/tempcontainer/HmiRuntime, a pathname in the container environment where the runtime or an intermediary actually exposes the endpoint.
The Linux string is not an alternate spelling of the Windows pipe name. It works only where a compatible listening endpoint exists at that path. Writing a function that returns the Linux path when the platform is not win32 does not create or forward the endpoint; it only changes what the client tries to open.
A related distinction matters if you deploy to both targets. The Unified Comfort Panel runs Linux and its container-side endpoint is reached with the volume mapping documented for Edge app deployment — a deployment architecture covered in Unified Comfort Panel CPU architecture for Docker images. A mapping proven on the panel is evidence about the panel, not about mounting Windows PC Runtime pipes on a Windows 10 Pro host.
Read the two symptoms separately #
Your report contains two distinct failures at two different layers:
- A
docker runmount error means the engine refused the requested configuration before the application started. The volume or pipe mount syntax you passed is not supported for that combination of host OS, container OS and endpoint type. No quoting variant — in quotes, with forward slashes, with or withoutHmiRuntime— will diagnose or fix an endpoint type the mount cannot carry. ECONNREFUSEDfrom the client means the container started, the application ran, and it attempted a connection that nothing accepted at the address it used. The endpoint either was not exposed into the container, is not a listening endpoint at that path, or a bridge that should be accepting there is not running.
Neither symptom proves the OpenPipe server itself is down. Confirm that by re-running the working host Node.js client at the same moment the container test runs: if the host client still connects, the runtime is available and the container configuration is the problem.
Isolate the layer: host, engine, container, client #
Work through this list in order, and keep every other variable identical between the host test and the container test:
- Record the exact endpoint the working Windows host client opens, including the full pipe name, and keep that value separate from any container path in your configuration.
- Determine whether Docker is running Linux containers or Windows containers, and record the exact volume and mount arguments actually passed to the run command.
- If the engine rejects the mount, capture the complete Docker error text. The decision here is: fix the mount syntax only if the endpoint type is supported for that container platform; if it is not, no syntax exists, and you go to the bridge option below.
- If the container starts, check from inside it whether the configured target path exists and whether it is a pipe or socket endpoint rather than an ordinary file or directory.
- Run the same Node.js client from inside the container against that in-container path. A path that merely exists does not establish a listening endpoint;
ECONNREFUSEDthere means nothing is accepting connections at it. - Only when the connection opens, send the application's normal OpenPipe request and check the response is valid for that request. A successful open proves transport only; it says nothing about request framing or application semantics.
The same layering discipline applies to other container endpoint problems on edge hardware — a container that cannot open a host D-Bus socket fails for the same reason: isolation cuts the container off from a host-side IPC endpoint, as described in Docker container cannot open the D-Bus socket on an edge controller.
Worked example: why each variant fails #
Take the Linux container case. The client calls a platform selector and tries to open the endpoint it returns:
- On the Windows host, the selector returns
\\.\pipe\HmiRuntime. Windows resolves it to the named-pipe server that PC Runtime created. The open succeeds, which is exactly your host result. - In the Linux container, the selector returns
/tempcontainer/HmiRuntime. The container file system contains no such listening endpoint, because nothing exposed one there. The client's open call finds no accepting socket at that path and fails withECONNREFUSED. Changing the string to//./pipe/HmiRuntimeor\\./pipe/HmiRuntimedoes not change the outcome: those are still not Linux pathnames, and no Linux endpoint exists behind them.
Count the states this example exercises: endpoint type (Windows kernel object versus Linux path), exposure (nothing mounted), and listener (nothing accepting). All three must be correct before the fourth state — a valid OpenPipe exchange — is even reachable. Your two observed errors sit at exposure and listener; the runtime itself is fine, as the host client shows.
Expose a compatible endpoint to the Linux container #
For a Linux container you have two decisions, and one of them must be made:
- Run the client in a Windows container instead. Windows containers share the host's named-pipe namespace, so the Windows pipe name is the endpoint to use, and the platform selector returning the Windows name is correct there. Check that your runtime dependencies support Windows containers before committing to this path.
- Keep the Linux container and put a bridge on the host between the container and the pipe. The bridge must accept connections on a Linux-openable endpoint inside the container's reach and, on the host side, open
\\.\pipe\HmiRuntimeand relay traffic. Restrict the bridge's listener to the local or container-network path it needs, and verify it preserves the OpenPipe application protocol end to end: a generic TCP proxy that only forwards bytes is not automatically OpenPipe-compatible unless the framing and request semantics pass through unchanged.
Returning the Linux path from a platform-check function, as the client-side selector in the example does, is legitimate only once a bridge or an equivalent mechanism actually serves that path. On a Unified Comfort Panel, the panel's own runtime environment supplies the Linux-side endpoint, which is why the same selector works there; when an app then fails to start on the panel, the cause is usually deployment rather than the pipe, as covered in why an Edge app does not autostart on a Unified Comfort Panel.
Verify transport and OpenPipe behavior after the fix #
Run this sequence from the container, with the same client path the application will use in operation:
- The container starts with no mount error.
- The configured in-container endpoint exists and has the expected endpoint type. Expected reading: the path check succeeds before any connection attempt.
- The client connects. Expected reading: the open succeeds with no
ECONNREFUSED. - The application sends its normal OpenPipe request and receives a valid response for that request, not merely a successful open.
- Restart the runtime, the bridge and the container in the order the machine will actually use, then repeat steps 2 through 4. Expected reading: the endpoint is available again at the configured path and the same request succeeds.
If step 3 fails again after a bridge is installed, the fault is in the bridge: it is not listening on the path the client uses, or it is listening but not connected to the host-side pipe. Check the bridge's own connection state to the Windows pipe before touching the client again.
The decision for each case #
- Windows host, client directly on Windows: works as you observed. No change needed.
- Linux container on Windows 10 Pro, direct pipe mount: not achievable with this Docker configuration; the mount errors are the engine correctly refusing an unsupported combination. Stop iterating on syntax.
- Linux container, bridge exposing an OpenPipe-compatible Linux endpoint: this is the working design. Choose the endpoint path once, point the platform selector at it, and verify with the sequence above.
- Windows container: works if your dependencies support it; use the Windows pipe name and skip the bridge entirely.
- Unified Comfort Panel target: use the documented panel volume mapping and the panel's own Linux-side path; do not carry the PC Runtime pipe name or any Windows-host bridge assumption across to it.
One safety note: when a bridge or a start-from-runtime mechanism launches external programs on a production machine, restrict who can trigger the connection and what the launched program can do, so an OpenPipe client cannot become an unintended way to run code on the operator station.
Questions asked
What happens if I use the Windows pipe name inside a Linux container?
The string names a Windows kernel object, not a file-system path, so a Linux process cannot open it no matter how you escape or quote it. The container client fails at open time, typically with ECONNREFUSED. The container needs its own endpoint, exposed by a bridge process on the host, or a Windows container instead of a Linux one.
Does switching slash direction make the pipe name work on Linux?
No. Replacing backslashes with forward slashes only changes the characters in the string; it does not create a listening endpoint anywhere on the container's file system or network. A Linux pathname such as /tempcontainer/HmiRuntime works only when some process actually accepts OpenPipe connections there.
Why does my Node.js client work on the Windows host but not in the container?
The host process opens the pipe from inside Windows, where the named-pipe server is visible to local processes. The container is an isolated environment whose view of the host's kernel objects and network is restricted, so the same code reaches nothing. Test the host client and the container client separately; the host result proves the runtime works, not that the container can reach it.
Is the OpenPipe path on a Unified Comfort Panel the same as on PC Runtime?
No. The panel runs Linux, so its OpenPipe endpoint is a Linux-side path inside the panel's container environment, reached with the volume mapping documented for Edge app deployment. A Windows PC Runtime pipe name is not interchangeable with it, and a mapping proven on the panel says nothing about pipe mounting on Windows 10 Pro.