草庐IT

Var-dumper

全部标签

Cannot Connect to the Docker Daemon at ‘unix:///var/run/docker.sock’ 出坑方法,已经解决了

docker安装后,使用中经常出现的错误是:CannotconnecttotheDockerdaemonat(unix:///var/run/docker.sock.Isthedockerdaemonrunning?) CannotconnecttotheDockerdaemonat(unix:///var/run/docker.sock.Isthedockerdaemonrunning?)一、什么原因导致的:触发此错误的一些原因包括:TheDockerdaemonisnotrunning.  Docker守护程序未运行。Dockerdoesn’tshutdowncleanly.    Doc

Cannot Connect to the Docker Daemon at ‘unix:///var/run/docker.sock’ 出坑方法,已经解决了

docker安装后,使用中经常出现的错误是:CannotconnecttotheDockerdaemonat(unix:///var/run/docker.sock.Isthedockerdaemonrunning?) CannotconnecttotheDockerdaemonat(unix:///var/run/docker.sock.Isthedockerdaemonrunning?)一、什么原因导致的:触发此错误的一些原因包括:TheDockerdaemonisnotrunning.  Docker守护程序未运行。Dockerdoesn’tshutdowncleanly.    Doc

【原创】JDK 9-17新功能30分钟详解-语法篇-var

JDK9-17新功能30分钟详解-语法篇-var介绍JDK10JDK10新增了新的关键字——var,官方文档说作用是:EnhancetheJavaLanguagetoextendtypeinferencetodeclarationsoflocalvariableswithinitializers大体意思就是用于带有初始化的局部变量声明,废话不多说,我们直接用具体代码来展示实际的作用。ListlistBefore10=newArrayList();#在JDK10之前varlistAfter10=newArrayList();#在JDK10之后listBefore10.add("9");listA

【原创】JDK 9-17新功能30分钟详解-语法篇-var

JDK9-17新功能30分钟详解-语法篇-var介绍JDK10JDK10新增了新的关键字——var,官方文档说作用是:EnhancetheJavaLanguagetoextendtypeinferencetodeclarationsoflocalvariableswithinitializers大体意思就是用于带有初始化的局部变量声明,废话不多说,我们直接用具体代码来展示实际的作用。ListlistBefore10=newArrayList();#在JDK10之前varlistAfter10=newArrayList();#在JDK10之后listBefore10.add("9");listA

cannot connect to the docker daemon at unix ///var/run/docker.sock. Is the docker daemon running?

可以先试试这种方式:https://blog.csdn.net/Ber_Bai/article/details/116044628记录一次服务器问题解决。系统:CentOS问题:服务器重启后,docker的容器挂了,运行命令dockerps,提示:cannotconnecttothedockerdaemonatunix///var/run/docker.sock.Isthedockerdaemonrunning?先说解决方案:启动dockerdaemon:执行命令dockerd记录下排查问题的过程:执行systemctlrestartdocker重启服务,命令行卡住不动执行systemctls

cannot connect to the docker daemon at unix ///var/run/docker.sock. Is the docker daemon running?

可以先试试这种方式:https://blog.csdn.net/Ber_Bai/article/details/116044628记录一次服务器问题解决。系统:CentOS问题:服务器重启后,docker的容器挂了,运行命令dockerps,提示:cannotconnecttothedockerdaemonatunix///var/run/docker.sock.Isthedockerdaemonrunning?先说解决方案:启动dockerdaemon:执行命令dockerd记录下排查问题的过程:执行systemctlrestartdocker重启服务,命令行卡住不动执行systemctls

Ubuntu系统 E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)

前言在安装一个python依赖库时,出现了如下问题:E:无法获得锁/var/lib/dpkg/lock-open(11:资源暂时不可用) E:无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?分析原因1)系统正在安装或更新软件,apt、apt-get正在被使用,所以暂时无法使用。2)可能是上次更新或者安装没有正常完成,导致apt或apt-get被占用。解决方案一可以先找一下apt或apt-get相关的进程,然后使用kill杀掉进程;ps-e|grepapt-getps-e|grepapt如果有显示相关的进程,基于进程的PID,使用kill名称杀掉进程;sudokillx

Ubuntu系统 E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)

前言在安装一个python依赖库时,出现了如下问题:E:无法获得锁/var/lib/dpkg/lock-open(11:资源暂时不可用) E:无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?分析原因1)系统正在安装或更新软件,apt、apt-get正在被使用,所以暂时无法使用。2)可能是上次更新或者安装没有正常完成,导致apt或apt-get被占用。解决方案一可以先找一下apt或apt-get相关的进程,然后使用kill杀掉进程;ps-e|grepapt-getps-e|grepapt如果有显示相关的进程,基于进程的PID,使用kill名称杀掉进程;sudokillx

成功解决FileNotFoundError: [Errno 2] No usable temporary directory found in [‘/tmp‘, ‘/var/tmp‘, ‘/usr/t

上午想尝试一下BLIP-2在自建图像数据集上的描述生成效果,但由于当前环境的python版本不能够支持最新版本的transformers库,于是新建一个python3.7的环境在其上安装较新版本的transformers库。但在使用命令pipinstalltorch==1.7.1+cu110torchvision==0.8.2+cu110torchaudio==0.7.2-fhttps://download.pytorch.org/whl/torch_stable.html安装torch过程中,报错如下:(python3.7)╭─root@1c113923969c/╰─#pipinstallt

成功解决FileNotFoundError: [Errno 2] No usable temporary directory found in [‘/tmp‘, ‘/var/tmp‘, ‘/usr/t

上午想尝试一下BLIP-2在自建图像数据集上的描述生成效果,但由于当前环境的python版本不能够支持最新版本的transformers库,于是新建一个python3.7的环境在其上安装较新版本的transformers库。但在使用命令pipinstalltorch==1.7.1+cu110torchvision==0.8.2+cu110torchaudio==0.7.2-fhttps://download.pytorch.org/whl/torch_stable.html安装torch过程中,报错如下:(python3.7)╭─root@1c113923969c/╰─#pipinstallt