diff options
author | Emile <hanemile@protonmail.com> | 2019-10-08 00:14:30 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-08 00:14:30 +0200 |
commit | 8f731db5a589930717d11a37db3c53e914c373a8 (patch) | |
tree | b08484b6ebeb4badb1b429177c533b8b23a90db0 | |
parent | 1a4167dc1e10e4d4d8167970948588b878e1de4d (diff) |
using the network config
-rw-r--r-- | src/docker.go | 4 |
1 files 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 |