package
0.14.0-rc.1
Repository: https://github.com/microsoft/hcsshim.git
Documentation: pkg.go.dev

# README

Overview

Applications connecting from the host into the container should use container-specific VMID. This VMID will need to be the same as the container's VMID inside the guest. One way to get the VMID is to query HCS for it or use this binary, which outputs the same VMID, when querying HCS isn't an option.

Build

Build the binary as following

> go build ./internal/tools/hvsocketaddr

Run

Find container ID using (e.g.) crictl.exe:

> crictl ps --no-trunc

Note that we need full container ID, rather than a truncated one.

Get VMID:

> .\hvsocketaddr.exe <container-id>

The output VMID can be used by the services on the host.