Open josiahls opened 1 week ago
I am facing a similar problem. Similar, because i see it happening on one of my host machines, intermittently. On another machine, magic
works reliably. But on my primary host, it often quietly hangs.
Seen with:
@ magic --version
magic 0.3.1 - (based on pixi 0.29.0)
@ lsb_release -a
Distributor ID: Debian
Description: Debian GNU/Linux trixie/sid
Release: n/a
Codename: trixie
No LSB modules are available.
@ uname -a
Linux priyasi 6.11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.2-1 (2024-10-05) x86_64 unknown unknown linux
Issue description
When running the
magic
CLI inside a Docker container configured withnetwork_mode: host
, the magic command hangs indefinitely. This issue occurs specifically when using Docker Compose withnetwork_mode: host
. The same command works as expected when:Running the container with docker run without network_mode: host. Running the container via Docker Compose without network_mode: host. This suggests that magic is encountering an issue when the container shares the host's network stack.
My desired outcome of this would at least be a better error instead of hang, along with some
--verbose
output that can tell me why the command isn't doing anything.Steps to reproduce
Create a Dockerfile that installs magic and max:
Create a docker-compose.yml file:
Build and run the Docker image:
Version Info