I have just started with docker and set up Docker Toolbox on Win 8.1. I have tried it out, created some Cotainers and played with those a bit. Works fine.
Now I want to use PhpStorm to create a new Project that runs in Docker. Therefore I created a new project and created a very simple docker-compose.yml:
version: '3'
services:
webserver:
image: phpstorm/php-71-apache-xdebug-26
ports:
- "80:80"
volumes:
- ./:/var/www/html
environment:
XDEBUG_CONFIG: remote_host=host.docker.internal
I have started my default docker machine and then try starting this file in PhpStorm. Then I get this message: "Client sent an HTTP request to an HTTPS server."
I tried to google this error and nothing really fits my problem. I tried adding
"InsecureRegistry": [
"192.168.99.100:5000"
],
to the config.json of my default machine. I also tried port 80.
Here is a screenshot of what I'm doing and seeing: https://paste.pics/7QSJS
Any hints? Thanks
Adding the default docker toolbox port in windows helped fix the problem.
"InsecureRegistry": [
"192.168.99.100:2376"
],
After that I also had to regenerate the certs via
docker-machine regenerate-certs [machine-name]