| ... | ... |
@@ -53,7 +53,7 @@ func ParseCommands(addr string, port int, args ...string) error {
|
| 53 | 53 |
} |
| 54 | 54 |
|
| 55 | 55 |
func (cli *DockerCli) CmdHelp(args ...string) error {
|
| 56 |
- help := fmt.Sprintf("Usage: docker [OPTIONS] COMMAND [arg...]\n -h=\"%s:%d\": Host:port to bind/connect to\n\nA self-sufficient runtime for linux containers.\n\nCommands:\n", cli.addr, cli.port)
|
|
| 56 |
+ help := fmt.Sprintf("Usage: docker [OPTIONS] COMMAND [arg...]\n -H=\"%s:%d\": Host:port to bind/connect to\n\nA self-sufficient runtime for linux containers.\n\nCommands:\n", cli.addr, cli.port)
|
|
| 57 | 57 |
for cmd, description := range map[string]string{
|
| 58 | 58 |
"attach": "Attach to a running container", |
| 59 | 59 |
"build": "Build a container from Dockerfile or via stdin", |
| ... | ... |
@@ -32,7 +32,7 @@ func main() {
|
| 32 | 32 |
flAutoRestart := flag.Bool("r", false, "Restart previously running containers")
|
| 33 | 33 |
bridgeName := flag.String("b", "", "Attach containers to a pre-existing network bridge")
|
| 34 | 34 |
pidfile := flag.String("p", "/var/run/docker.pid", "File containing process PID")
|
| 35 |
- flHost := flag.String("h", fmt.Sprintf("%s:%d", host, port), "Host:port to bind/connect to")
|
|
| 35 |
+ flHost := flag.String("H", fmt.Sprintf("%s:%d", host, port), "Host:port to bind/connect to")
|
|
| 36 | 36 |
flag.Parse() |
| 37 | 37 |
if *bridgeName != "" {
|
| 38 | 38 |
docker.NetworkBridgeIface = *bridgeName |
| ... | ... |
@@ -15,7 +15,7 @@ To list available commands, either run ``docker`` with no parameters or execute |
| 15 | 15 |
|
| 16 | 16 |
$ docker |
| 17 | 17 |
Usage: docker [OPTIONS] COMMAND [arg...] |
| 18 |
- -h="127.0.0.1:4243": Host:port to bind/connect to |
|
| 18 |
+ -H="127.0.0.1:4243": Host:port to bind/connect to |
|
| 19 | 19 |
|
| 20 | 20 |
A self-sufficient runtime for linux containers. |
| 21 | 21 |
|
| ... | ... |
@@ -42,9 +42,9 @@ use -host and -port on both deamon and client |
| 42 | 42 |
.. code-block:: bash |
| 43 | 43 |
|
| 44 | 44 |
# Run docker in daemon mode |
| 45 |
- sudo <path to>/docker -h 0.0.0.0:5555 & |
|
| 45 |
+ sudo <path to>/docker -H 0.0.0.0:5555 & |
|
| 46 | 46 |
# Download a base image |
| 47 |
- docker -h :5555 pull base |
|
| 47 |
+ docker -H :5555 pull base |
|
| 48 | 48 |
|
| 49 | 49 |
|
| 50 | 50 |
Starting a long-running worker process |