mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	build: don't kill remote controller after build
We don't know if other builds might be running, etc, so we should allow the server to decide when to exit. Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
		@@ -392,10 +392,6 @@ func launchControllerAndRunBuild(dockerCli command.Cli, options buildOptions) er
 | 
				
			|||||||
		if err := c.Disconnect(ctx, ref); err != nil {
 | 
							if err := c.Disconnect(ctx, ref); err != nil {
 | 
				
			||||||
			logrus.Warnf("disconnect error: %v", err)
 | 
								logrus.Warnf("disconnect error: %v", err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		// If "invoke" isn't specified, further inspection ins't provided. Finish the buildx server.
 | 
					 | 
				
			||||||
		if err := c.Kill(ctx); err != nil {
 | 
					 | 
				
			||||||
			return err
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user