草庐IT

run_bear

全部标签

解决Docker报错:This error may indicate that the docker daemon is not running.

    成功安装完docker【安装过程见上一篇Windows安装docker_up_xin的博客-CSDN博客】后的第二天就遇到了问题,进入PowerShell后报错如下:   网上常见的解决方法是在ServiceWindowsGUI重启dockerdesktopservice,或者使用 DockerCli.exe-SwitchDaemon命令,但是都没能解决        网上对于dockerdaemonnotrunning的几种解决办法   最后尝试着在dockerdesktop的设置里,勾上startwhenlogin,然后关闭设置界面,在对应容器的actions点击开始,就可以了  

Cannot run program “D:\JDK\bin\java.exe“ (in directory “C:\Program Files\JetBrains\IntelliJ IDEA 202

Cannotrunprogram"D:\JDK\bin\java.exe"(indirectory"C:\ProgramFiles\JetBrains\IntelliJIDEA2022.2.3\bin"):CreateProcesserror=2,系统找不到指定的文件。出现这个原因是因为jdk存放的位置变了。我之前把jdk存放在D盘,后来我卸载了,又重新安装的jdk,重新安装时是按默认路径安装的,所以IDEA找不到jdk了,出现这样的情况后,到IDEA里告诉设置一下,告诉IDEA目前jdk存放的位置即可。 jdk存储位置,可以从环境变量--系统变量里面去复制 问题完美解决 

ssl - 获取网络/http : TLS handshake timeout when run golang app on docker container host

这是我的代码:funcLogin(whttp.ResponseWriter,r*http.Request){fmt.Println("Loginprccessing")email:=r.FormValue("email")password:=r.FormValue("password")fmt.Println(email+password)varnetTransport=&http.Transport{Dial:(&net.Dialer{Timeout:50*time.Second,}).Dial,TLSHandshakeTimeout:50*time.Second,}varnetCl

ssl - 获取网络/http : TLS handshake timeout when run golang app on docker container host

这是我的代码:funcLogin(whttp.ResponseWriter,r*http.Request){fmt.Println("Loginprccessing")email:=r.FormValue("email")password:=r.FormValue("password")fmt.Println(email+password)varnetTransport=&http.Transport{Dial:(&net.Dialer{Timeout:50*time.Second,}).Dial,TLSHandshakeTimeout:50*time.Second,}varnetCl

初始化k8s时,报错[kubelet-check] It seems like the kubelet isn‘t running or healthy.

1、初始化k8s时出现以下错误[kubelet-check]Itseemslikethekubeletisn'trunningorhealthy.[kubelet-check]TheHTTPcallequalto'curl-sSLhttp://localhost:10248/healthz'failedwitherror:Get"http://localhost:10248/healthz":dialtcp[::1]:10248:connect:connectionrefused.[kubelet-check]Itseemslikethekubeletisn'trunningorhealthy

Win11中docker镜像Failed to run image. Error invoking remote method ‘docker-run-container‘: Error: conne

问题描述:Failedtorunimage.Errorinvokingremotemethod'docker-run-container':Error:connectENOENT\\.\pipe\dockerDesktopEngine解决方法:使用管理员权限在cmd中执行:netstopwinnat启动Docker容器:使用管理员权限在cmd中执行:netstartwinnat重新启动Docker就可以正常启动镜像了(如果不行的话,就重启电脑试试)。问题分析:初步怀疑可能是未关闭容器,就进行程序的升级或重启等操作导致的,并且重现确实出现。以后升级docker或直接重启windows前务必先关闭

Git报错fatal: this operation must be run in a work tree

项目场景:学习git在初始化仓库后查看git状态是报错fatal:thisoperationmustberuninaworktree:问题描述提示:这里描述项目中:使用gitinit--bare进行建立裸仓库之后,在使用git其它的命令都会出现fatal:Thisoperationmustberuninaworktree问题,处理方法:先touchreadme因为在创建裸仓库时,没有生成readme文件,出现不能提交的情况。之后就可以使用gitinit,gitaddreadme解决方案:解决方法:在该仓库目录下,新建文件夹,进入该文件夹,执行如下命令:touchReadmegitinitgit

【Spring Boot基础】解决ERROR org.springframework.boot.SpringApplication -- Application run failed报错问题

一、问题描述在学习SpringBoot配置profile的时候,.yml文件内容明明跟老师敲的一模一样,但还是报错ERRORorg.springframework.boot.SpringApplication--Applicationrunfailed原.yml文件内容:---server:port:8081spring:profiles:dev---server:port:8082spring:profiles:test---server:port:8083spring:profiles:pro---spring:profiles:active:pro报错如下: 二、解决方法按照“ERROR

google-app-engine - `go run *.go` 中的文件如何在不导入的情况下访问函数?

我正在关注Bookshelftutorial关于在GoogleAppEngine上构建网络服务。要启动应用程序,本教程运行gorunapp.goauth.gotemplate.go。我不明白这是怎么回事。例如,parseTemplatemethod是怎样的?来自template.go用于app.go没有template.go的导入语句?我的理解是,在Go项目中,我们有一个具有main方法的入口点文件。然后该文件导入包以在内部使用它们。同时运行这三个文件有什么好处? 最佳答案 该示例使用单个包,特别是main包来实现所有内容。每个包都

google-app-engine - `go run *.go` 中的文件如何在不导入的情况下访问函数?

我正在关注Bookshelftutorial关于在GoogleAppEngine上构建网络服务。要启动应用程序,本教程运行gorunapp.goauth.gotemplate.go。我不明白这是怎么回事。例如,parseTemplatemethod是怎样的?来自template.go用于app.go没有template.go的导入语句?我的理解是,在Go项目中,我们有一个具有main方法的入口点文件。然后该文件导入包以在内部使用它们。同时运行这三个文件有什么好处? 最佳答案 该示例使用单个包,特别是main包来实现所有内容。每个包都