From f1cb91005b1dd8f323272204921a544632bba27b Mon Sep 17 00:00:00 2001 From: Senyo Simpson Date: Fri, 17 Jan 2025 12:57:19 +0200 Subject: [PATCH] add a hostname field to container so it can be explicitly set --- machine_types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/machine_types.go b/machine_types.go index 687080b..8c6f7fe 100644 --- a/machine_types.go +++ b/machine_types.go @@ -781,6 +781,9 @@ type ContainerConfig struct { // Name is used to identify the container in the machine. Name string `json:"name"` + // Hostname is used to set the hostname for the container + Hostname string `json:"hostname,omitempty"` + // Image is the docker image to run. Image string `json:"image"`