From 4746698c0674c1ae9f25b221f239d390e5eb68bc Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 8 Oct 2019 00:13:33 +0200 Subject: corrected the cmd syntax --- src/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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", -- cgit 1.4.1