mirror of https://github.com/docker/docs.git
Set labels for pending containers.
Fixes docker/compose#2447 Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
58ee815ec2
commit
9310a385af
|
@ -28,8 +28,10 @@ type pendingContainer struct {
|
|||
|
||||
func (p *pendingContainer) ToContainer() *cluster.Container {
|
||||
container := &cluster.Container{
|
||||
Container: dockerclient.Container{},
|
||||
Config: p.Config,
|
||||
Container: dockerclient.Container{
|
||||
Labels: p.Config.Labels,
|
||||
},
|
||||
Config: p.Config,
|
||||
Info: dockerclient.ContainerInfo{
|
||||
HostConfig: &dockerclient.HostConfig{},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue