Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.4K
Views
driver failed programming external connectivity on endpoint redis : Bind for 0.0.0.0:6379 failed: port is already allocated

I'm trying to run

/usr/bin/docker run --rm -v /var/data/redis:/data -v /var/data/conf/redis.conf:/usr/local/etc/redis/redis.conf --name redis -p 6379:6379 redis:5.0.3-alpine3.9

but I get:

/usr/bin/docker: Error response from daemon: driver failed programming external connectivity on endpoint redis (f16f19b7727a710fb6c96be566dac66ce26282982960d97faa28861c24fcf2fb): Bind for 0.0.0.0:6379 failed: port is already allocated.

When I try to check the ports used with netstat, I get:

[root@artik ~]# netstat -nlpute | grep 6379
tcp6       0      0 :::6379                 :::*                    LISTEN      0          14384       2471/docker-proxy

I have no docker containers running right now.

I don't understand this issue, what should I do ?

[root@artik ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Steps I had to take to get everything working:

sudo service docker stop
sudo rm /var/lib/docker/network/files/local-kv.db
sudo service docker start
docker system prune

And then try again.

over 4 years ago · Santiago Trujillo Report

0

From your netstat output its clear that there is one process holding port 6379

[root@artik ~]# netstat -nlpute | grep 6379
tcp6       0      0 :::6379                 :::*                    LISTEN      0          14384       2471/docker-proxy

docker-proxy processes are created when you do port forwarding in docker run which is true in your case -p 6379:6379.

For more info on docker-proxy check this out.

I suspect that you earlier ran a redis container which used port 6379, but that container was not properly deleted which kept process docker-proxy running and hence you got port is already allocated

Hope this helps.

over 4 years ago · Santiago Trujillo Report

0

As DannyMoshe suggested for anyone else.

Try this before you potentially mess up your whole setup::

sudo service docker stop
sudo service docker start
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!