nikivdev/code · error · anyhow::Error

Port 80 is owned by docker container '{}'. Stop it first bef

Error message

Port 80 is owned by docker container '{}'. Stop it first before starting native domains proxy.

What it means

Error "Port 80 is owned by docker container '{}'. Stop it first before starting native domains proxy." thrown in nikivdev/code.

Source

Thrown at src/domains.rs:777

            "-Wextra",
            "-pthread",
            source.to_string_lossy().as_ref(),
            "-o",
            paths.native_bin.to_string_lossy().as_ref(),
        ])
        .output()
        .context("Failed to build native local domains daemon")?;
    ensure_success(output, "Failed to build native local domains daemon")?;
    Ok(())
}

fn assert_no_port_80_conflict_native(paths: &DomainsPaths) -> Result<()> {
    if native_proxy_running(paths)? {
        return Ok(());
    }

    if let Some(owner) = docker_container_owning_port_80()? {
        bail!(
            "Port 80 is owned by docker container '{}'. Stop it first before starting native domains proxy.",
            owner
        );
    }
    if let Some(listener) = port_80_listener_summary()? {
        bail!(
            "Port 80 is already in use by '{}'. Stop that listener, then retry `f domains --engine native up`.",
            listener
        );
    }
    Ok(())
}

fn start_native_proxy(paths: &DomainsPaths) -> Result<()> {
    let log_file = fs::OpenOptions::new()
        .create(true)
        .append(true)
        .open(&paths.native_log)

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/domains.rs:777 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/2f78c479a45ac396. Report an issue: GitHub.