mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 10:17:26 +08:00
Create a pseudo tty to docker daemons
This commit is contained in:
parent
f06dd2a149
commit
59844cb80c
@ -81,7 +81,7 @@ func CreateInstance(net string, dindImage string) (*ptypes.Instance, error) {
|
|||||||
h := &container.HostConfig{NetworkMode: container.NetworkMode(net), Privileged: true}
|
h := &container.HostConfig{NetworkMode: container.NetworkMode(net), Privileged: true}
|
||||||
h.Resources.PidsLimit = maximumPidLimit
|
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, "")
|
container, err := c.ContainerCreate(context.Background(), conf, h, nil, "")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user