mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 13:29:03 +08:00
feat: handle mcp for offline mode (#10451)
This commit is contained in:
parent
5dc5d77096
commit
4bdbee1d53
1 changed files with 3 additions and 0 deletions
|
|
@ -680,6 +680,9 @@ func GetWebsiteID() uint {
|
|||
}
|
||||
|
||||
func pullImage(imageType string) {
|
||||
if global.CONF.Base.IsOffLine {
|
||||
return
|
||||
}
|
||||
if imageType == "npx" {
|
||||
if err := docker.PullImage("supercorp/supergateway:latest"); err != nil {
|
||||
global.LOG.Errorf("docker pull mcp image error: %s", err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue