Docker “Drive sharing seems blocked by a firewall” – kaspersky


Recently I installed Docker on my Windows 10 computer to test it out as a local tool for WordPress development. I followed the instructions and used a handy script by 10up to quickly set up an optimal WordPress environment.

Everything was going so well until I encountered an error in the installation. Namely, my firewall was blocking access to my Drives. Annoying!

To the Google!

Hours of searches came up with inadequate solutions because each firewall has its own unique User Interface and some of the solutions were only tempory and needed to be re-applied after a reboot. I knew that a port was being blocked, I just wasn’t sure exactly where to change it.

Eventually, I found it, so to save you time, here it is.

Open up Kaspersky and select Settings (bottom left) and then select Protection from the side menu and select Firewall.

Open Configure packet rules.

Select Local Services (TCP) and Edit.

Finally, remove the port number from your Local ports (in my case 445) and save.

You should now be able to share your drive without disabling Kaspersky firewall or applying any other temporary “fixes“.



Matthew Horne

Matthew is a web developer from the United Kingdom who taught himself PHP and JavaScript and never looked back. If you would like to hire me, shoot me an email.

  • Rob 1st October 2018, 6:01 pm Link Reply


    you helped me a lot πŸ™‚

  • Mr. K. 17th October 2018, 12:37 pm Link Reply

    Thanks a lot!

  • eric 25th November 2018, 2:17 pm Link Reply

    Worked for me too, Thanks

  • Chris O'Connor 9th December 2018, 10:41 am Link Reply

    Awesome – that was exactly what I needed – thanks a lot – I owe you a beer ! πŸ˜‰

  • Bill 7th February 2019, 9:23 pm Link Reply

    I’m now able to share local drives. Thank you!

  • Chris 24th February 2019, 8:51 pm Link Reply

    Thanks for this notice – works as expected, but i created a new rule which allows connections on port 445. If i remove docker, i don’t have to search for what i’ve changed πŸ˜€

  • Alberto Morando 15th March 2019, 8:19 pm Link Reply

    You rock. Thanks for the info. Now I donΒ΄t need to disable Firewall for running Docker

  • Levi Nkata 16th May 2019, 7:26 am Link Reply

    Excellent! This just solved my prob!! Thanks.

  • Alex 6th July 2019, 10:11 pm Link Reply

    Great, I would have spent days maybe looking for this

  • Veronika Khan 23rd August 2019, 7:28 am Link Reply

    Thanks a lot for sharing! It worked for me πŸ™‚

  • Craig Fujii 21st September 2019, 10:35 pm Link Reply

    This worked for me as well. Thank you for posting.

  • Evan Schalton 27th September 2019, 9:58 pm Link Reply

    I’m sure you just saved me 4 hours! Thank you

  • Bhagavan Reddy 29th September 2019, 6:36 am Link Reply

    Thank you for sharing the information

  • Javier Condor 14th December 2019, 1:50 pm Link Reply

    Thanks a lot!!, I tried adding a custom rule and didn’t work, never imagined that blocking rule. I was very frustrated, you saved me.

  • Andy Clark 8th January 2020, 9:42 am Link Reply

    Thanks Matthew, saves me turning the firewall off and back on every time I do a deploy.

Leave a Comment