Skip to content

Commit

Permalink
vm: reduce startup time for docker runtime (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
abiosoft authored Dec 10, 2023
1 parent c1e797a commit 26d4eef
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions environment/vm/lima/lima.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/abiosoft/colima/daemon"
"github.com/abiosoft/colima/environment"
"github.com/abiosoft/colima/environment/container/containerd"
"github.com/abiosoft/colima/environment/container/docker"
"github.com/abiosoft/colima/environment/vm/lima/limautil"
"github.com/abiosoft/colima/util"
"github.com/abiosoft/colima/util/osutil"
Expand Down Expand Up @@ -114,14 +113,6 @@ func (l *limaVM) Start(ctx context.Context, conf config.Config) error {
return nil
})

// restart needed for docker user
if conf.Runtime == docker.Name {
a.Add(func() error {
ctx := context.WithValue(ctx, cli.CtxKeyQuiet, true)
return l.Restart(ctx)
})
}

l.addPostStartActions(a, conf)

return a.Exec()
Expand Down

0 comments on commit 26d4eef

Please sign in to comment.