Category: Docker

  • Allow docker container to access service on host

    Say for example you have a MySQL server running on the host machine and want your docker container to be able to connect to it. When using docker-compose the following config in the yaml will allow this. extra_hosts: Now, inside your container to connect to the host use the address : host.docker.internal My scenario for […]