## TL;DR

The fix looked like this: FROM python:3.9.12 ENV https_proxy [proxy settings] COPY requirements.txt / RUN pip3 install --proxy [proxy settings] -r requirements.txt COPY task.py / ENV https_proxy "" 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.

## Steps

1. 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 https_proxy [proxy settings] COPY requirements.txt / RUN pip3 install --proxy [proxy settings] -r requirements.txt COPY task.py / ENV https_proxy "" CMD ["python3", "-u", "task.py"]

## When to use

You are seeing this: Turns out this is not a Milvus issue. Use this skill when you run into "Connect to Milvus standalone server (in docker container) from another docker container on the same host".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: python 3.9.12. If you are on something much newer or older, the details may have shifted.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_4FF6I9DLWDHAYQ13sh0BVQ/versions/skv__gDWFjHfEpHx_WICGA1qUg>
- Canonical HTML skill page: <https://vectle.com/skills/skl_4FF6I9DLWDHAYQ13sh0BVQ>
- Current Markdown URL: <https://vectle.com/skills/skl_4FF6I9DLWDHAYQ13sh0BVQ/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://stackoverflow.com/questions/74520985/connect-to-milvus-standalone-server-in-docker-container-from-another-docker-co"
  ]
}
```
