|
@@ -177,7 +177,7 @@ func StartContainer(containerName string, containerType string) (structs.Contain
|
|
|
case existingContainer == nil:
|
|
case existingContainer == nil:
|
|
|
// if the container does not exist, create and start it
|
|
// if the container does not exist, create and start it
|
|
|
_, err := cli.ContainerCreate(ctx, &container.Config{
|
|
_, err := cli.ContainerCreate(ctx, &container.Config{
|
|
|
- Image: desiredRepo + ":" + desiredTag,
|
|
|
|
|
|
|
+ Image: desiredImage,
|
|
|
}, nil, nil, nil, containerName)
|
|
}, nil, nil, nil, containerName)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return containerState, err
|
|
return containerState, err
|
|
@@ -241,7 +241,6 @@ func StartContainer(containerName string, containerType string) (structs.Contain
|
|
|
|
|
|
|
|
// convert the version info back into json then a map lol
|
|
// convert the version info back into json then a map lol
|
|
|
// so we can easily get the correct repo/release channel/tag/hash
|
|
// so we can easily get the correct repo/release channel/tag/hash
|
|
|
-// note: this is probably no longer necessary! just reference VersionInfo in future
|
|
|
|
|
func GetLatestContainerInfo(containerType string) (map[string]string, error) {
|
|
func GetLatestContainerInfo(containerType string) (map[string]string, error) {
|
|
|
var res map[string]string
|
|
var res map[string]string
|
|
|
arch := config.Architecture
|
|
arch := config.Architecture
|