1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00

Create a pseudo tty to docker daemons

This commit is contained in:
Jonathan Leibiusky (@xetorthio) 2016-10-11 13:03:30 -03:00
parent f06dd2a149
commit 59844cb80c

View File

@ -81,7 +81,7 @@ func CreateInstance(net string, dindImage string) (*ptypes.Instance, error) {
h := &container.HostConfig{NetworkMode: container.NetworkMode(net), Privileged: true}
h.Resources.PidsLimit = maximumPidLimit
conf := &container.Config{Image: dindImage}
conf := &container.Config{Image: dindImage, Tty: true}
container, err := c.ContainerCreate(context.Background(), conf, h, nil, "")
if err != nil {