thank you for your question.
Some information as you requested: I’m working on a laptop based on 64 bit windows 10 pro.
My Docker version is Docker Desktop 4.12.0 (85629).
The command sequence from cmd window to reproduce my error is:
docker pull ruanbekker/kinesis-local
docker run -it python:3.7-alpine sh
the last command inside python container give the error…
I’m new on Docker…may it be the kinesis container is not connected with python container?
Thank you for your support.
I had a hunch that this would be an issue and wrote this because of that:
But what I couldn’t assume is that you only pull the kinesis image, but never run it. Plus what I quoted from my previous post: localhost is always local to the context you are in, regardless if it’s the host, or a container. It is not shared amongst the host and container or between containers.
If you want one container to access another container, both need to be added to a user defined network and use the container name to access the target container:
docker network create kinesis-net
docker run -d -p 4567:4567 --name kinesis-local --network="kinesis-net" ruanbekker/kinesis-local:latest
docker run -ti --network="kinesis-net" python:3.7-alpine sh