Im seeing unreliable behaviour with packaging dock...
# general
s
Im seeing unreliable behaviour with packaging docker images on gitlab CI (kubernetes runner)
Copy code
13:38:17.36 [ERROR] 1 Exception encountered:
76Engine traceback:
77 in `publish` goal
78ProcessExecutionFailure: Process 'Building docker image my-image:tag' failed with exit code 125.
79stdout:
80stderr:
81unknown flag: --output
82See 'docker --help'.
83Usage: docker [OPTIONS] COMMAND
84A self-sufficient runtime for containers
My docker config looks like
Copy code
[docker]
env_vars = [
  "DOCKER_HOST",
  "DOCKER_TLS_CERTDIR",
  "DOCKER_TLS_VERIFY",
  "DOCKER_CERT_PATH",
  "HOME"
]
build_args = ["TAG"]
use_buildx = true
Sometimes retrying the build works, sometimes it doesnt I am using the latest docker:dind image Disabling buildx works but id still like to use buildx Has anyone seen this?
g
I'd suggest running with debug logging (
-ldebug
) and watching for the command line, seeing if anything shows up weirdly. Also
--keep-sandboxes=on_failure
, then seeing if you can repro in that dir. Finally, if you have a reasonable repro rate, try to see if there's a pattern depending on whether
pantsd
is running or not when you run the command. For example; does
pkill pantsd ; pants package ...
increase or reduce repro rate?