mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 03:26:37 +00:00
proxy: Pass sandbox to proxy
Add the `-sandbox` option when launching the proxy. This isn't strictly required by the proxy, but is extremely useful for log analysis to allow log entries to be matched to sandboxes as the proxy will add a `sandbox` field in each log entry. Fixes #463. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
b2bec3362b
commit
23eb13f23a
@ -43,7 +43,13 @@ func (p *kataProxy) start(sandbox *Sandbox, params proxyParams) (int, string, er
|
||||
return -1, "", err
|
||||
}
|
||||
|
||||
args := []string{config.Path, "-listen-socket", proxyURL, "-mux-socket", params.agentURL}
|
||||
args := []string{
|
||||
config.Path,
|
||||
"-listen-socket", proxyURL,
|
||||
"-mux-socket", params.agentURL,
|
||||
"-sandbox", sandbox.ID(),
|
||||
}
|
||||
|
||||
if config.Debug {
|
||||
args = append(args, "-log", "debug")
|
||||
console, err := sandbox.hypervisor.getSandboxConsole(sandbox.id)
|
||||
|
Loading…
Reference in New Issue
Block a user