Skip to content

Hostname host.docker.internal does not resolve in Linux #34

@DanishSiraj

Description

@DanishSiraj

The docker-compose up command fails on linux based systems as the hostname host.docker.internal is not resolved in Linux systems, throws could not translate host name "host.docker.internal" to address: Name or service not known error.

Workaround:

use docker's internal gateway address 172.17.0.1 instead of host.docker.internal while using the default docker network.

tried on Ubuntu 20.04.1 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions