| ... | ... |
@@ -67,6 +67,7 @@ func ParseRun(args []string, stdout io.Writer) (*Config, error) {
|
| 67 | 67 |
cmd.SetOutput(ioutil.Discard) |
| 68 | 68 |
} |
| 69 | 69 |
|
| 70 |
+ flHostname := cmd.String("h", "", "Container host name")
|
|
| 70 | 71 |
flUser := cmd.String("u", "", "Username or UID")
|
| 71 | 72 |
flDetach := cmd.Bool("d", false, "Detached mode: leave the container running in the background")
|
| 72 | 73 |
flStdin := cmd.Bool("i", false, "Keep stdin open even if not attached")
|
| ... | ... |
@@ -92,6 +93,7 @@ func ParseRun(args []string, stdout io.Writer) (*Config, error) {
|
| 92 | 92 |
runCmd = parsedArgs[1:] |
| 93 | 93 |
} |
| 94 | 94 |
config := &Config{
|
| 95 |
+ Hostname: *flHostname, |
|
| 95 | 96 |
Ports: flPorts, |
| 96 | 97 |
User: *flUser, |
| 97 | 98 |
Tty: *flTty, |