about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/docker.go5
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",