Skip to content

Access docker hosts /etc/hosts from inside the PHP-docker (works on OSX, not on Linux) #9

@cytopia

Description

@cytopia

In order to check if the hostnames for mass virtual hosting have been setup correctly in vhosts.php the php docker needs to be able to resolve the docker hosts dns entries from the hosts /etc/hosts file.

This is done in the PHP docker via getent hosts example.loc

However, this only works with a docker setup under OSX, but not with a docker setup under Linux.

I also created a ticket to get more information.

If anybody has a nice/better solution please let me know.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions