From 8f731db5a589930717d11a37db3c53e914c373a8 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 8 Oct 2019 00:14:30 +0200 Subject: using the network config --- src/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docker.go b/src/docker.go index 51e1d81..b56c811 100644 --- a/src/docker.go +++ b/src/docker.go @@ -91,12 +91,12 @@ func spawnCompanion(username string, accesscode string) { log.Println("Creating the container") // create the docker container - resp, err := dockerCLI.ContainerCreate(dockerCtx, Config, HostConfig, nil, "") + resp, err := dockerCLI.ContainerCreate(dockerCtx, Config, HostConfig, NetworkingConfig, "") if err != nil { panic(err) } - log.Println("Container started!") + log.Println("Container created!") // id of the created container containerID := resp.ID -- cgit 1.4.1