wooden-thailand-838605/27/2022, 3:08 PM
which works fine, flags and volume get assigned as expected. Now when I move that into the
./pants run :linux-pyenv --docker-run-args="--rm -it -v $(pwd):/app"
file, which I did as follow:
then I get this error:
[docker] run_args = "--rm -it -v $(pwd):/app"
If I were to guess, this looks like some parsing/casting issue when reading from the toml file and sending it to docker since when I run directly from the command line it works as expected. I’ve already tried single quotes, escaping “$” and parenthesis but nothing seems to work. 😞
11:02:24.76 [INFO] Initializing scheduler... 11:02:24.95 [INFO] Scheduler initialized. 11:02:55.41 [INFO] Completed: Building docker image linux-pyenv:latest docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. See 'docker run --help'.
hundreds-father-40405/27/2022, 3:10 PM
. Instead, you could use
wooden-thailand-838605/27/2022, 3:12 PM
hundreds-father-40405/27/2022, 3:14 PM
wooden-thailand-838605/27/2022, 3:14 PM