Connect to Milvus standalone server (in docker container) from another docker container on the same host
Connect to Milvus standalone server (in docker container) from another docker container on the same host: Turns out this is not a Milvus issue.
Turns out this is not a Milvus issue. The problem was caused by our corporate network, and the proxy requirement. In the dockerfile, I need to set the proxy settings to be able to pull images. However, this sets the proxy settings during builld and for the container. These proxy settings prevented communication between the containers. The proxy setting needs to be reset in the dockerfile. The fix looked like this: FROM python:3.9.12 ENV httpsproxy [proxy settings] COPY requirements.txt / RUN pip3 install --proxy [proxy settings] -r requirements.txt COPY task.py / ENV httpsproxy "" CMD ["python3", "-u", "task.py"]
Context: When I run Milvus in standalone mode on docker (by executing docker-compose on the default Milvus docker-compose.yml file, resulting in the three containers being created), I cannot connect to the Milvus server from a task running in another docker container on the same host. I have configured this container to be on the same network as the Milvus server, and I can ping the Milvus server from this container via the Milvus server's IP. In the task container I run: connections.
Matched source
Source: Source: https://stackoverflow.com/questions/74520985/connect-to-milvus-standalone-server-in-docker-container-from-another-docker-co Original query: "Connect to Milvus standalone server (in docker container) from another docker container on the same host" Key terms: another, connect, container, docker, host, milvus, same, server, standalone
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.