mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 09:53:21 +08:00
Add container names to make attachable names work
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user