mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-04 17:33:21 +08:00
Create a pseudo tty to docker daemons
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user