mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-09 16:50:28 +00:00
support for container option: --hostname (#809)
This commit is contained in:
1 parent
f0fd0af5ce
commit
9126f15aa2
6 files changed
+53
No files matched your search
@@ -52,6 +52,7 @@ type NewContainerInput struct {
|
||||
Privileged bool
|
||||
UsernsMode string
|
||||
Platform string
|
||||
Hostname string
|
||||
}
|
||||
|
||||
// FileEntry is a file to copy to a container
|
||||
@@ -302,6 +303,7 @@ func (cr *containerReference) create(capAdd []string, capDrop []string) common.E
|
||||
WorkingDir: input.WorkingDir,
|
||||
Env: input.Env,
|
||||
Tty: isTerminal,
|
||||
Hostname: input.Hostname,
|
||||
}
|
||||
|
||||
mounts := make([]mount.Mount, 0)
|
||||
|
||||
Reference in new issue
Block a user