-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: use-proxy not working #1807
Comments
Thanks for raising this! |
Can you run |
Here is the redacted version, X for project PATH, Z for proxy ip and port
|
From the debug messages, it seems envd can get the base image metadata through the proxy (on your host), but the buildkitd in the container cannot access the Internet.
|
Proxy is not a localhost address, |
Are you use the envd server?
Describe the bug
envd up --use-proxy is recognized, but HTTP(S)_PROXY en variables don't seemt o be sent to the moby/buildkit images, and build fails when trying to access the internet :
ERRO[2023-11-30T15:19:07+01:00] Buildkit error: failed to solve: failed to load cache key: failed to do request: Head "https://ghcr.io/v2/flyteorg/flytekit/manifests/py3.11-1.10.1": dial tcp 140.82.121.33:443: connect: connection refused
To Reproduce
Expected behavior
proxy variables sent to buildkit container, and build working.
The
docker info
outputClient: Docker Engine - Community
Version: 24.0.7
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 116
Server Version: 24.0.7
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
runc version: v1.1.10-0-g18a0cb0
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.5.0-13-generic
Operating System: Ubuntu 23.10
OSType: linux
Architecture: x86_64
CPUs: 20
Total Memory: 62.48GiB
Name: yd-4GVSJX3
ID: c4ff2738-d309-454f-96df-1a0eb58714a4
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: [redacted]
HTTPS Proxy: [redacted]
No Proxy: localhost,127.0.0.1
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Default Address Pools:
Base: 172.30.0.0/16, Size: 24
The
envd version
outputenvd: v0.3.40
BuildDate: 2023-09-01T08:46:03Z
GitCommit: d99cfa4
GitTreeState: clean
GitTag: v0.3.40
GoVersion: go1.19.10
Compiler: gc
Platform: linux/amd64
Additional context
No response
The text was updated successfully, but these errors were encountered: