0

我收到了错误,我相信解决它的方法是运行:minikube start --container-runtime=containerd 但扩展似乎运行minikube start. 那么我应该如何添加标志?这是launch.json文件

{
    "configurations": [
        {
            "name": "Cloud Run: Run/Debug Locally",
            "type": "cloudcode.cloudrun",
            "request": "launch",
            "build": {
                "docker": {
                    "path": "Dockerfile"
                }
            },
            "image": "dai",
            "service": {
                "name": "dai",
                "containerPort": 8080,
                "resources": {
                    "limits": {
                        "memory": "256Mi"
                    }
                }
            },
            "target": {
                "minikube": {}
            },
            "watch": true
        }
    ]
}
4

1 回答 1

1

Cloud Code for VS Code 目前不支持此类设置。但是您可以配置 minikube 以使用minikube config set.

Cloud Run 仿真会创建一个单独的 minikube 配置文件,名为cloud-run-dev-internal. 因此,您应该能够运行以下命令:

minikube config set --profile cloud-run-dev-internal container-runtime containerd

您必须删除该 minikube 配置文件才能使设置在您下次启动时生效:

minikube delete --profile cloud-run-dev-internal
于 2022-03-04T17:40:06.110 回答