Redis : Creating Server TCP listening socket *:6379: unable to bind socket, errno: 13

Qiao Jason
# develop.yml
  redis:
    image: redis
    command: redis-server --requirepass 123
    ports:
    - '6379:6379'
    expose:
    - "6379

docker-compose -f develop.yml up redis shows:

docker-compose -f develop.yml up redis
Starting django-blog_redis_1 ... done
Attaching to django-blog_redis_1
redis_1     | 1:C 16 Nov 2018 03:52:46.935 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1     | 1:C 16 Nov 2018 03:52:46.935 # Redis version=5.0.1, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1     | 1:C 16 Nov 2018 03:52:46.935 # Configuration loaded
redis_1     | 1:M 16 Nov 2018 03:52:46.935 # Creating Server TCP listening socket *:6379: unable to bind socket, errno: 13

I check the port: fuser -k -n tcp 6379 but nothing use 6379.

How can I solve it?

Qiao Jason

My os: Deepin Linux.

It seems that the problem is with deepin.

Execute the following command to solve it:

sudo apt remove apparmor

Related discussion: https://github.com/docker/for-linux/issues/413

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Failed to create datagram socket (OS Error: Permission denied, errno = 13

Tomcat socket listening timeouts

Unable to connect to TCP socket of Kafka server

Python socket.error: [Errno 13] Permission denied

socket.error: [Errno 13] Permission denied when creating a fake email server

Asycn TCP Server holds the socket but stops listening

PHP socket connection to TCP Server

Tcp Socket server in C#

Attempt to re-bind an already closed listening socket is failing (EADDRINUSE)?

TCP open socket from port that's already used for listening

Server Socket disconnects and stops listening

Server Socket errno 57 - Socket is not connected

how to create a background task in spring to keep listening to data on TCP socket

Can't bind TCP listener *:6379 using Redis on Windows

TCP socket server

how to bind a TCP socket without listening in nodejs?

socket is not listening for multiple request

tcp socket server not sending

Creating a new tcp socket - server side

TCP/IP Socket Port Listening

TCP Hole Punching (bypassed listening socket)

Raspberry Pi TCP socket - [Errno 99] Cannot assign requested address

Linux: TCP Socket listening: How to detect clients that fail to close socket?

Spring Integration TCP - What is a good way to close listening socket completely

Socket Programming: TCP daytime server?

socket.on is not listening for a event

Listening to sails socket in react

Unable to ping redis server port 6379 from Windows Command Prompt

How to set unlimited max connections for a TCP listening socket on Linux?