首页 > 其他分享 >Docker启动失败,报错Cannot connect to the Docker daemon at unix:///var/run/docker 完美解决方案

Docker启动失败,报错Cannot connect to the Docker daemon at unix:///var/run/docker 完美解决方案

时间:2023-10-21 11:12:54浏览次数:42  
标签:daemon run unix 报错 connect docker Docker

问题描述:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

首次安装docker后,服务没有自启动

解决方案:

查看docker状态

 1 service docker status 

设置开启Linux时docker自启动

 1 systemctl enable docker 

 

 然后重启虚拟机即可解决问题。

 

 ps:参考Docker启动失败,报错Cannot connect to the Docker daemon at unix:///var/run/docker 完美解决方案_請你喝杯Java的博客-CSDN博客

标签:daemon,run,unix,报错,connect,docker,Docker
From: https://www.cnblogs.com/freshfresh/p/17778639.html

相关文章

  • Docker启动报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock
    问题描述:  Docker启动报错:CannotconnecttotheDockerdaemonatunix:///var/run/docker.sock.Isthedockerdaemonrunning?  CannotconnecttotheDockerdaemonatunix:///var/run/docker.sock.Isthedockerdaemonrunning?输入dockerps命令无法显示服......
  • docker cp 命令 - 宿主机与容器互相拷贝文件
    一、从容器拷贝文件到宿主机命令格式:$dockercp<containder-id>:/path/host/path例子:$dockercpc9b7f17d43e9:/opt/hello.txt/home/hello.txt二、从宿主机拷贝文件到容器命令格式:$dockercp/host/path<containder-id>:/path例子:$dockercp/home/hel......
  • 深入理解 Docker:探索容器技术的核心概念
    在工作中,我们掌握了微服务的服务注册与发现(nacos)、配置中心(nacos)、远程服务调用(feign)、网关(gateway),同时借助Idea编译工具多次完成本地服务启动、部署和验证。但是我们假想下面场景:开发人员A写好的代码-->开发人员小王的电脑上运行,小周必须保证跟小王一样的系统环境(JDK/MyS......
  • NETCORE DockerFile
    1.DockerFile配置rm-rfDockerfilecat>>Dockerfile<<EOFFROMmcr.microsoft.com/dotnet/aspnet:3.1ASbase#RUNapkadd--no-cacheicu-libsEXPOSE80EXPOSE443#buildFROMmcr.microsoft.com/dotnet/sdk:3.1ASbuildRUNdotnetnugetaddsource......
  • sonarqube启动报错:You must address the points described in the following [2] line
    Youmustaddressthepointsdescribedinthefollowing[2]linesbeforestartingElasticsearch.bootstrapcheckfailure[1]of[2]:maxnumberofthreads[3870]foruser[sonar]istoolow,increasetoatleast[4096]bootstrapcheckfailure[2]of[2]:maxvi......
  • React DockerFile 镜像部署
    1.配置Node.js运行环境(可以不用配置)   1>wget https://nodejs.org/dist/v12.18.1/node-v12.18.1-linux-x64.tar.gz   2>sudotar-zxvfnode-v12.18.1-linux-x64.tar.gz   3>cp-a/root/node-v12.18.1-linux-x64/bin/node/usr/local/bin/node  4......
  • dolphinscheduler报错:Connect to 192.168.xx.xx:8088 [192.168.xx.xx/110.173.196.1]
    报错信息:在dophin中抽取mysql的数据到hive中报错[ERROR]2023-10-2015:33:10.461org.apache.dolphinscheduler.common.utils.HttpUtils:[73]-Connectto192.168.xx.xx:8088[192.168.xx.xx/110.173.196.1]failed:connecttimedoutorg.apache.http.conn.ConnectTimeout......
  • jpa 连接sqlserver 发布tomcat报错 SunJSSE
    报错信息:java.ext.dirs:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/jre/lib/ext:/usr/java/packages/lib/ext20-Oct-202316:37:28.074信息[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0]com.microsoft.sqlserver.jdbc.TDSChanne......
  • Docker 安装bookstack
    Docker安装bookstack(环境centos)docker安装自行百度yuminstall-ydockerMYSQL安装#拉取镜像dockerpullmysql#创建数据存放位置mkdir-p/var/own/datadirmkdir-p/var/own/conf#在/var/own/conf新建my.cnf并填写内容vimy.cnf#创建mysql容器dockerrun--na......
  • xxl-job执行java任务报错: unable to find valid certification path to requested tar
    1、错误:xxl-job调用https接口显示证书验证失败[错误信息:sun.security.validator.ValidatorException:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget]2023-10-2015......