在尝试启动docker中的redis的时候突然报错了

$ sudo docker start redis
Error response from daemon: driver failed programming external connectivity on endpoint redis (89f663b87a43b4cbf45acd826512dea07fd05d257eb1a7b86b1afeb1402bef6e): Error starting userland proxy: listen tcp4 0.0.0.0:6379: bind: address already in use
Error: failed to start containers: redis

查看一下端口占用情况

$ netstat -anp | grep 6379
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      1108/redis-server 1
tcp6       0      0 ::1:6379                :::*                    LISTEN      1108/redis-server 1

发现已经有一个redis-server在运行了(而且是kill不掉的),查了一些博客发现这个是本机的redis在运行
先把本机的redis停掉

$ /etc/init.d/redis-server stop
[ ok ] Stopping redis-server (via systemctl): redis-server.service.

然后就可以继续运行docker中的redis了

$ sudo docker start redis
redis
$ sudo docker ps
CONTAINER ID   IMAGE     COMMAND                  CREATED       STATUS         PORTS                                       NAMES
f7cb3be5f598   redis     "docker-entrypoint.s…"   5 hours ago   Up 4 seconds   0.0.0.0:6379->6379/tcp, :::6379->6379/tcp   redis

Redis:Error starting userland proxy: listen tcp4 0.0.0.0:6379: bind: address already in use相关推荐

  1. Error starting userland proxy: listen tcp4 0.0.0.0:8005: bind: address alrea

    Error starting userland proxy: listen tcp4 0.0.0.0:8005: bind: address alrea 上面的错误已经说的很清楚了,我们的proxy代 ...

  2. docker出现Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use的解决方法

    目录 1. 问题所示 2. 分析原理 3. 解决方法 1. 问题所示 出现如下问题 (base) gaokaoli@kkjz-ThinkStation-P330:~$ sudo docker star ...

  3. 服务器重启后发现docker-compose的nginx重启失败: Error starting userland proxy: listen tcp 0.0.0.0:80: bind: addres

    服务器重启后执行docker-compose up -d报错: Starting nginx ... php is up-to-date Starting nginx ... errorERROR: ...

  4. Error starting userland proxy: listen tcp 0.0.0.0:8080: bind: address already in use.

    文章目录 一.现象 二.解决方案 一.现象 [root@localhost app]# docker run -p 8080:8080 -p 9326:9326 --name eblog --link ...

  5. docker守护式安装tomcat(汤姆猫)报错:Error starting userland proxy: listen tcp 0.0.0.0:8888: bind: address alrea

    用docker安装tomcat的时候,运行镜像,安装tomcat容器出现报错 [root@localhost ~]# docker run -it -p 8888:8080 tomcat docker ...

  6. Error starting userland proxy: listen tcp 0.0.0.0:5601: bind: address already in use

    问题出现原因:5601端口被绑定 解决办法:

  7. SpringBoot运行时提示:Error starting ApplicationContexxt,To display the uto-configration report re-run you

    场景 在搭建SpringBoot项目启动后提示: Error starting ApplicationContexxt,To display the uto-configration report r ...

  8. SpringBoot项目报错解决:“Error starting ApplicationContext. To display the conditions report re-run ...”

    SpringBoot项目报错:Error starting ApplicationContext. To display the conditions report re-run your appli ...

  9. springboot错误:Error starting ApplicationContext. To display the conditions report re-run your applica

    springboot错误:Error starting ApplicationContext. To display the conditions report re-run your applica ...

  10. SpringBoot报错:Error starting ApplicationContext. To display the conditions report re-run your applica

    Spring Boot报错:Error starting ApplicationContext. To display the conditions report re-run your applic ...

最新文章

  1. 为特定用户创建监牢 chroot
  2. Base64编码问题( Convert.ToBase64String)问题
  3. You should rebuild using libgmp = 5 to avoid timing attack vulnerability
  4. html可以导入MySQL吗_将数据从HTML文件(带有嵌入式JavaScript)导入MySQL数据库
  5. 动态规划:连续子数组的最大和
  6. 见鬼了,VS2005发布站点不会把Global.asax复上。
  7. JDBC:java.sql.SQLException: Before start of result set怎么办
  8. 从源码深处体验Spring核心技术--基于注解的IOC初始化
  9. python的实例属性和静态属性表_Python:类属性,实例属性,私有属性与静态方法,类方法,实例方法...
  10. python能做大型游戏吗_python有做大型游戏的潜力吗?
  11. 医学计算机应用研究的意义,医学图像感兴趣区域的自动提取-计算机应用研究.PDF...
  12. mysql、sqlserver、oracle各数据类型与java类型对应
  13. 19.为什么要用异步框架,它解决什么问题?
  14. 【To Do! 重点 正则表达式】LeetCode 65. Valid Number
  15. MySql BlackHole存储引擎
  16. java h5 调用摄像头_基于百度AI使用H5实现调用摄像头进行人脸注册、人脸搜索功能(Java)...
  17. speex回声消除源码解读
  18. 腾讯云开发低代码平台初探
  19. 2018再见,2019你好
  20. 浅谈大型互联网企业入侵检测及防护策略

热门文章

  1. IBEACON 解析代码(C语言和LUA语言)
  2. 做了个网页版的 五笔跟打器: 玫枫跟打器
  3. 记录一个报错问题 关于调用win32com打开文档
  4. @PreAuthorize、@Secured、 @RolesAllowed优先级
  5. 人工智能基础——知识的表示方法,产生式表示法
  6. 资产证券化为什么需要区块链技术?专访趣链科技揭开“区块链+ABS”迷雾
  7. html自动获取图片,html img动态读取图片
  8. java guardedby_java 多线程并发设计模式之三:Guarded suspension 模式
  9. 学习计算机基本知识,怎样按序学习计算机基本知识
  10. 怎么下载jQuery文件