I have tried package docker but got an error after...
# general
c
I have tried package docker but got an error after pex build. Searching but no result. Is that something related local docker configuration??
Copy code
12:21:12.39 [INFO] Completed: Building docker image docker:latest
12:21:12.40 [ERROR] 1 Exception encountered:

  ProcessExecutionFailure: Process 'Building docker image docker:latest' failed with exit code 1.
stdout:

stderr:
#1 [internal] load build definition from Dockerfile.superman
#1 sha256:d00f80a10014e5eb26d752fef9acfd03ed0d23487d4e93688ad0a6753a8a42cf
#1 transferring dockerfile: 144B 0.0s done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:c686b491462bcaba2ca2d35328c1948309e89ce47a5300a88f8b18edf0a79466
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load metadata for <http://docker.io/library/python:3.9|docker.io/library/python:3.9>
#3 sha256:5ceb849adf4ca2eed629b09d8add870d381c45f6f40f947be68f6595c97a8af8
Failed to fire hook: while creating logrus local file hook: user: Current requires cgo or $USER, $HOME set in environment
[2022-12-16T03:21:12.378018000Z][docker-credential-desktop][F] get system info: exec: "sw_vers": executable file not found in $PATH
[goroutine 1 [running, locked to thread]:
[common/pkg/system.init.0()
[       common/pkg/system/os_info.go:32 +0x29d
#3 ERROR: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``
------
 > [internal] load metadata for <http://docker.io/library/python:3.9|docker.io/library/python:3.9>:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``



Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
c
Yes, that is a sign of Pants running in a hermetic environment. There’s config/env vars that needs propagating through.
❤️ 1