We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5454782 commit c8c4c5aCopy full SHA for c8c4c5a
environment/container/incus/incus.go
@@ -94,6 +94,18 @@ func (c *incusRuntime) Start(ctx context.Context) error {
94
})
95
96
a.Add(func() error {
97
+ // attempt to set remote
98
+ if err := c.setRemote(conf.AutoActivate()); err == nil {
99
+ return nil
100
+ }
101
+
102
+ // workaround missing user in incus-admin by restarting
103
+ ctx := context.WithValue(ctx, cli.CtxKeyQuiet, true)
104
+ if err := c.guest.Restart(ctx); err != nil {
105
+ return err
106
107
108
+ // attempt once again to set remote
109
return c.setRemote(conf.AutoActivate())
110
111
0 commit comments