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’
- Uninstalled ‘Docker for windows’ (make sure Docker Toolbox and VirtualBox are uninstalled as well)
- Go to C:\users[USER] directory and remove ‘.docker’ directory if it is there.
- Remove Environmental Variables:
- go to control panel/all control panel items/ system click on ‘advanced system settings’ in the advanced tab click ‘Environment Variables’
- 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.