From cbc8d8a61c696ec24353ad025f56d19f0fcbd7c3 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 8 Oct 2019 09:28:11 +0200 Subject: fixed minimal issues crashing the container --- src/docker.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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", -- cgit 1.4.1