|
|
|
@ -39,7 +39,6 @@ import ( |
|
|
|
|
|
|
|
|
|
// TranslateNodeToContainer translates a k3d node specification to a docker container representation
|
|
|
|
|
func TranslateNodeToContainer(node *k3d.Node) (*NodeInDocker, error) { |
|
|
|
|
|
|
|
|
|
/* initialize everything that we need */ |
|
|
|
|
containerConfig := docker.Config{} |
|
|
|
|
hostConfig := docker.HostConfig{ |
|
|
|
@ -195,6 +194,7 @@ func TranslateContainerDetailsToNode(containerDetails types.ContainerJSON) (*k3d |
|
|
|
|
Args: []string{}, // empty, since Cmd already contains flags
|
|
|
|
|
Ports: containerDetails.HostConfig.PortBindings, |
|
|
|
|
Restart: restart, |
|
|
|
|
Created: containerDetails.Created, |
|
|
|
|
Labels: labels, |
|
|
|
|
Network: clusterNetwork, |
|
|
|
|
ServerOpts: serverOpts, |
|
|
|
|