diff options
author | Emile <hanemile@protonmail.com> | 2019-10-08 09:28:11 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-08 09:28:11 +0200 |
commit | cbc8d8a61c696ec24353ad025f56d19f0fcbd7c3 (patch) | |
tree | 5145e7e37d34c429599a57cd31b7065657deb310 /src | |
parent | 515179a2462ea66f18b9f41b3a2b9ab0b624ef23 (diff) |
fixed minimal issues crashing the container
Diffstat (limited to 'src')
-rw-r--r-- | src/docker.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/docker.go b/src/docker.go index 8351b8f..ee99847 100644 --- a/src/docker.go +++ b/src/docker.go @@ -45,13 +45,14 @@ func spawnCompanion(username string, accesscode string) { sessionSalt := generateSessionSalt() vpnRemoteAddress := "127.0.0.1" - vpnRemotePort := "1193" + vpnRemotePort := "1194" log.Println("Generating the container config") Config := &container.Config{ Image: "circus-companion:latest", - Shell: []string{"/workdir/register", "-username", username, "-accesscode", accesscode, "sessionSalt", sessionSalt, "-vpnRemoteAddress", vpnRemoteAddress, "-vpnRemotePort", vpnRemotePort}, + Cmd: []string{"-username", username, "-accessCode", accesscode, "-sessionSalt", sessionSalt, "-vpnRemoteAddress", vpnRemoteAddress, "-vpnRemotePort", vpnRemotePort}, + // Container labels used by traefik Labels: map[string]string{ "traefik.enable": "true", |