Docker starts, but trying to do anything results in "error during connect"

So I was having this issue and I was able to get my docker to work properly. Below are the steps I used but i don’t know if they will be for everybody.

I found out the main issues were stemming from me having ‘Docker Toolbox’ installed before changing to ‘Docker for Windows’

  1. Uninstalled ‘Docker for windows’ (make sure Docker Toolbox and VirtualBox are uninstalled as well)
  2. Go to C:\users[USER] directory and remove ‘.docker’ directory if it is there.
  3. Remove Environmental Variables:
    1. go to control panel/all control panel items/ system click on ‘advanced system settings’ in the advanced tab click ‘Environment Variables’
    2. Remove the below variables by highlighting them and clicking delete. CONFIRM deletion by clicking ‘ok’

variable:

  • DOCKER_TLS_VERIFY
  • DOCKER_CERT_PATH
  • DOCKER_HOST
  • DOCKER_TOOLBOX_INSTALL_PATH

You might want to restart you computer just to be safe.

12 Likes