I'm trying to run some docker images in Ubuntu but keep encountering this error. This is the command I'm executing:
This is the error that's being returned:
The image has been loaded correctly as indicated here:
The volume that I'm trying to run also exists so I'm not sure what the issue is. I've also tried running the command without the volume argument and just the file name like so: sudo docker run -d --publish 5001:80 backend-api-local
, but the same error is returned.
Thanks for your help in advance!
CodePudding user response:
From the listing above we can see that some rule in iptables doesnt allow traffic on port 5001 (blocks it). Maybe it is pruden to have a look at its rules, for example iptables -L or switch it off for a while (service iptables stop) or restart it.
CodePudding user response:
I upgraded WSL and that solved my issue