mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-15 18:57:28 +08:00
Add container names to make attachable names work
This commit is contained in:
parent
a7d76f2720
commit
8f5f9f2c90
@ -94,7 +94,7 @@ func CreateInstance(session *Session, dindImage string) (*Instance, error) {
|
|||||||
session.Id: &network.EndpointSettings{Aliases: []string{nodeName}},
|
session.Id: &network.EndpointSettings{Aliases: []string{nodeName}},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
container, err := c.ContainerCreate(context.Background(), conf, h, networkConf, "")
|
container, err := c.ContainerCreate(context.Background(), conf, h, networkConf, fmt.Sprintf("%s_%s", session.Id[:4], nodeName))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user