Skip to content
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

load tubular in docker container #5

Open
byteshiva opened this issue Feb 19, 2022 · 1 comment
Open

load tubular in docker container #5

byteshiva opened this issue Feb 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@byteshiva
Copy link

Failed to execute in Docker, Throws :load: can't load dispatcher: invalid BPF filesystem path: /sys/fs/bpf

Steps:

docker run -it --rm golang /bin/bash

root:~# go install github.com/cloudflare/tubular/cmd/tubectl@latest 
go: downloading github.com/cloudflare/tubular v0.0.0-20220217173114-10be72c9a73c
go: downloading github.com/prometheus/client_golang v1.9.0
go: downloading golang.org/x/sys v0.0.0-20211025112917-711f33c9992c
go: downloading inet.af/netaddr v0.0.0-20210603230628-bf05d8b52dda
go: downloading kernel.org/pub/linux/libs/security/libcap/cap v1.2.62
go: downloading github.com/cilium/ebpf v0.8.1-0.20220203100645-f886ae420e31
go: downloading github.com/containernetworking/plugins v0.8.6
go: downloading go4.org/intern v0.0.0-20210108033219-3eb7198706b2
go: downloading kernel.org/pub/linux/libs/security/libcap/psx v1.2.62
go: downloading github.com/prometheus/common v0.15.0
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/prometheus/procfs v0.2.0
go: downloading go4.org/unsafe/assume-no-moving-gc v0.0.0-20201222180813-1025295fd063
go: downloading google.golang.org/protobuf v1.23.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
root@0a8f76e19b88:~# sudo tubectl load 
bash: sudo: command not found
root@0a8f76e19b88:~# tubectl load 
Error: load: can't load dispatcher: invalid BPF filesystem path: /sys/fs/bpf
root@0a8f76e19b88:~# 
@lmb lmb changed the title Failed to execute in Docker, Throws :load: can't load dispatcher: invalid BPF filesystem path: /sys/fs/bpf load tubular in docker container Feb 22, 2022
@lmb lmb added the enhancement New feature or request label Feb 22, 2022
@lmb
Copy link
Contributor

lmb commented Feb 22, 2022

Running in a docker container is not something we do, so this is basically unsupported. At a minimum you'd have to mount /sys/fs/bpf, and probably make it a privileged container as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants