about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/docker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docker.go b/src/docker.go
index d7f4ba9..12f3b54 100644
--- a/src/docker.go
+++ b/src/docker.go
@@ -51,7 +51,7 @@ func spawnCompanion(username string, accesscode string) {
 
 	Config := &container.Config{
 		Image: "circus-companion:latest",
-		Cmd:   []string{fmt.Sprintf("-username %s -accesscode %s -sessionSalt %s -vpnRemoteAddress %s -vpnRemotePort %s", username, accesscode, sessionSalt, vpnRemoteAddress, vpnRemotePort)},
+		Shell: []string{"/workdir/register", "-username", username, "-accesscode", accesscode, "sessionSalt", sessionSalt, "-vpnRemoteAddress", vpnRemoteAddress, "-vpnRemotePort", vpnRemotePort},
 		// Container labels used by traefik
 		Labels: map[string]string{
 			"traefik.enable": "true",