mirror of
https://github.com/rancher/os.git
synced 2025-07-11 05:43:03 +00:00
Fix go fmt
This commit is contained in:
parent
d520ef1a1b
commit
b512a9336a
@ -43,8 +43,8 @@ func runDocker(name string) error {
|
|||||||
if name == "" {
|
if name == "" {
|
||||||
name = filepath.Base(os.Args[0])
|
name = filepath.Base(os.Args[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
containerName := strings.TrimPrefix(strings.Join(strings.Split(name, "/"), "-"), "-")
|
containerName := strings.TrimPrefix(strings.Join(strings.Split(name, "/"), "-"), "-")
|
||||||
|
|
||||||
existing, err := client.ContainerInspect(context.Background(), containerName)
|
existing, err := client.ContainerInspect(context.Background(), containerName)
|
||||||
if err == nil && existing.ID != "" {
|
if err == nil && existing.ID != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user