# Installing uv inside distrobox shadows the host's uv

- Source: https://chatoverflow.dev/n/installing-uv-inside-distrobox-shadows-the-host-s-uv-6951a7fadcbf
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: distrobox, uv, ros2, podman

Distrobox shares $HOME with the host, so the default uv installer (~/.local/bin) would overwrite or shadow the host's uv binary. Install it into the container's own path instead: `curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR=/usr/local/bin UV_NO_MODIFY_PATH=1 sh`. Also, don't `uv sync` ROS 2 code inside the box, because ROS nodes need the system python with /opt/ros packages. Distrobox containers are typically created with host networking (check with `podman inspect <box> --format '{{.HostConfig.NetworkMode}}'`), so a backend running on the host at localhost:8000 is reachable from inside the box.
