func (c Container) Name() string {
	return c.containerInfo.Name
}
Name returns the Docker container name.
package container
import (
	"fmt"
	"strconv"
	"strings"
	"github.com/containrrr/watchtower/internal/util"
	wt "github.com/containrrr/watchtower/pkg/types"
	"github.com/docker/docker/api/types"
	dockercontainer "github.com/docker/docker/api/types/container"
)
func NewContainer(containerInfo *types.ContainerJSON, imageInfo *types.ImageInspect) *Container {
	return &Container{
		containerInfo: containerInfo,
		imageInfo:     imageInfo,
	}
}
type Container struct {
	LinkedToRestarting bool
	Stale              bool
	containerInfo *types.ContainerJSON
	imageInfo     *types.ImageInspect
}
func (c Container) ContainerInfo() *types.ContainerJSON {
	return c.containerInfo
}
func (c Container) ID() wt.ContainerID {
	return wt.ContainerID(c.containerInfo.ID)
}
func (c Container) IsRunning() bool {
	return c.containerInfo.State.Running
}
func (c Container) IsRestarting() bool {
	return c.containerInfo.State.Restarting
}