It looks like passing docker args to cpk run is not possible when no cpk run args are passed.
The following happens in the basic example:
BAD:
$ cpk run -- -e DEBUG=1
cpk| INFO : CPK - Code Packaging toolKit - v0.2.5
usage: cpk run [-h] [-C WORKDIR] [-H MACHINE] [-a {arm64v8,arm32v7,amd64}] [-f] [-v] [--debug] [-n NAME] [-c CMD] [--pull] [--force-pull] [--no-multiarch] [-M [MOUNT]] [--keep] [-L LAUNCHER] [-A ARGUMENTS] [--runtime RUNTIME] [-X] [-s] [--net NETWORK_MODE] [-d] [--tag TAG]
[docker_args [docker_args ...]]
cpk run: error: unrecognized arguments: -e
GOOD:
$ cpk run --debug -- -e DEBUG=1
cpk| INFO : CPK - Code Packaging toolKit - v0.2.5
cpk| DEBUG : Argument 'parsed.machine' not set. Creating machine from environment.
cpk| INFO : Project workspace: /home/afdaniele/code/afdaniele/cpk/examples/basic
... ALL GOOD HERE ...
It looks like passing docker args to
cpk runis not possible when nocpk runargs are passed.The following happens in the basic example:
BAD:
GOOD: