move Docker manager to docker package

This commit is contained in:
Pavel Sviderski
2024-11-17 19:41:47 +10:00
parent 9c9e143dc8
commit 24371eb401
5 changed files with 29 additions and 28 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"google.golang.org/protobuf/types/known/emptypb"
"slices"
"strings"
machinecore "uncloud/internal/machine"
"uncloud/internal/machine/api/pb"
"uncloud/internal/machine/docker"
"uncloud/internal/secret"
)
@@ -111,7 +111,7 @@ func (c *Client) RunService(ctx context.Context, opts *ServiceOptions) (RunServi
}
netConfig := &network.NetworkingConfig{
EndpointsConfig: map[string]*network.EndpointSettings{
machinecore.DockerNetworkName: {},
docker.NetworkName: {},
},
}
// TODO: pull image if it doesn't exist on the machine.