Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Container networking missing #25

Open
g4b0 opened this issue May 19, 2021 · 0 comments
Open

Container networking missing #25

g4b0 opened this issue May 19, 2021 · 0 comments

Comments

@g4b0
Copy link

g4b0 commented May 19, 2021

In tutorial 0.7-PHP-Lambda-functions-with-Docker-container-images the created container does not have access to the network.
I did a simple try with gethostbyaddr:

$reverse = gethostbyaddr('51.255.200.41');
return APIResponse("Hello, ". $data['queryStringParameters']['name'] . " - $reverse");

When testing into the local container gethostbyaddr return the IP address, becuause it can't query DNS servers.
Pushing into AWS Lambda works fine.

It would be fine to adjust this tutorial explainig how to do it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant