Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Docker-in-Docker push to localstack #192

Open
ptrhck opened this issue Jul 11, 2022 · 1 comment
Open

[Question] Docker-in-Docker push to localstack #192

ptrhck opened this issue Jul 11, 2022 · 1 comment

Comments

@ptrhck
Copy link

ptrhck commented Jul 11, 2022

I have deployed a lambda function with a container image to localstack using this plugin. With host: http://localstack, the deploy command worked perfectly, even from within a docker container (VSCode devcontainer). Can you explain how this is possible? Because if I do a docker push localstack:4510/X from that container that is in the same network, that would not work. Only outside the container with localhost.

@steffyP
Copy link
Member

steffyP commented Oct 16, 2023

Hi @ptrhck,
apologies for the late reply. Could you please explain a little more what exactly you are referring to?
It seems like you used a docker-compose with one container running the serverless-deployment, and the other is running localstack?

This is more a docker-network configuration, and has not so much to do with LocalStack.

if I do a docker push localstack:4510/X from that container that container that is in the same network

I assume you mean that you worked with an ECR, that you have created on LocalStack? From which container you are trying to run this? If it is the localstack container, that it may not be able to resolve the service-name.

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

No branches or pull requests

2 participants