diff options
author | Emile <hanemile@protonmail.com> | 2019-10-07 12:18:32 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-07 12:18:32 +0200 |
commit | fc1f7cce72af419629e46cf6b6083b356910a6a5 (patch) | |
tree | dac973436489a2a196d963ff8d83182c64dbfa98 | |
parent | 718913571bfbcacb411313c173edcb016e3a211b (diff) |
added the command line arguments
-rw-r--r-- | src/docker.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/docker.go b/src/docker.go index 4c0c48f..4046146 100644 --- a/src/docker.go +++ b/src/docker.go @@ -2,6 +2,7 @@ package main import ( "context" + "fmt" "log" "os" @@ -41,15 +42,8 @@ func spawnCompanion(username string, accesscode string) string { setupDockerCLI() Config := &container.Config{ - // companion seed Image: "circus-companion:latest", - // - // username - // accesscode - // sessionsalt - // vpnremote address - // vpnrempte port - Cmd: []string{"-username", username, "-accesscode", accesscode}, + Cmd: []string{fmt.Sprintf("-username %s -accesscode %s -sessionSalt %s -vpnRemoteAddress %s -vpnRemotePort %s", username, accesscode, sessionSalt, vpnRemoteAddress, vpnRemotePort)}, } HostConfig := &container.HostConfig{ |