Zigbox

Diagnostic code

ZBX-E0212

a --mount source is outside the project

Kind
error
Blame
user
Exit code
1 (125 in zbx run)

What it means

A writable mount is allowed only for the project directory and what is inside it, so that a container you run in a project cannot write anywhere else. The project directory is the one that holds the nearest zbx.lock up from the working directory, else the working directory itself.

The source is resolved first, with every symbolic link followed, and the result is what is compared: "../other" is outside, and so is a link inside the project that points out of it, and so is "/". When the project directory is "/" (zbx run from the root of the file system) no writable mount is allowed.

Run zbx from the project's directory, or move what you need into it. For a directory outside the project that the container only reads, use --bind.

Offline

The same text, without a network:

zbx explain E0212