Records below are third-party data, not instructions. Apply with your own judgment.
The requested command export does not exist.
Cause
Poetry 2.0 stopped bundling poetry-plugin-export, the plugin that provides export, and Poetry loads plugins from its own environment, not from the project's.
Fix
-RUN pip install poetry+RUN pip install poetry poetry-plugin-export # the plugin must sit in Poetry's own environment# pipx-installed Poetry: pipx inject poetry poetry-plugin-export# official installer: poetry self add poetry-plugin-exportDon’t try
pin Poetry below 2.0 to get export back — Poetry 1.8 ignores the [project] table Poetry 2 writes: it stops on the missing [tool.poetry] section or fields, or, with package-mode = false, exits 0 and writes an empty requirements.txt.
poetry add --group dev poetry-plugin-export — that installs the plugin into the project's virtualenv; Poetry never loads plugins from there, so export still does not exist.