Skip to content

How to run Binary Ninja in a Docker container? #6834

Closed

Description

@zixuWang2022

I'm attempting to run Binary Ninja in a ​headless Docker container​ (without GUI) to use its ​Python API​ for automation tasks. However, the application fails to start due to Qt/XCB errors (pasted below), likely because the container lacks a display.

While we understand the GUI requires X11 configuration, our primary goal is to ​configure the license​ and use the API in a headless environment. Currently, the crash prevents even license setup.

qt.qpa.xcb: could not connect to display  
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.  
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.  

Available platform plugins are: wayland-egl, wayland, xcb.  

Aborted (core dumped)

Could you provide some configuration guidance for running it in a Docker container?

Activity

  1. CouleeApps commented on May 14, 2025

    @CouleeApps
    Member

    If you have a commercial or headless license, you can install it by manually dropping the license.dat file at ~/.binaryninja/license.dat. You can then either use the included scripts/install_api.py script to install the python api in your python interpreter or virtual environment, or set PYTHONPATH to the python folder in the install. We have done this for dogbolt, see here: https://github.com/decompiler-explorer/decompiler-explorer/blob/master/runners/decompiler/Dockerfile#L26-L43

  2. psifertex commented on May 14, 2025

    @psifertex
    Member
  3. locked and limited conversation to collaborators on May 14, 2025
  4. converted this issue into a discussion #6835 on May 14, 2025
  5. added this to the Io milestone on Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    State: IntendedIssue is actually intended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions