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

Cann't create cluster "starting container process caused: unknown capability "CAP_PERFMON": unknown." #1906

Closed
sserantes opened this issue Oct 22, 2020 · 3 comments
Labels
kind/external upstream bugs

Comments

@sserantes
Copy link

$ kind version                                                                                  
kind v0.9.0 go1.15.2 linux/amd64

$ kubectl version                                                                               
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"archive", BuildDate:"2020-07-16T09:08:46Z", GoVe
rsion:"go1.14.4", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?

$ docker info                                                                                                                                                                         [29/232]
Client:              
 Context:    default
 Debug Mode: false          
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.4.2-docker)
                                               
Server:               
 Containers: 2                             
  Running: 0           
  Paused: 0
  Stopped: 2                      
 Images: 3                                  
 Server Version: 20.10.0-beta1           
 Storage Driver: overlay2   
  Backing Filesystem: extfs
  Supports d_type: true            
  Native Overlay Diff: true 
 Logging Driver: json-file                                                                                                                                                                    
 Cgroup Driver: cgroupfs   
 Cgroup Version: 1                             
 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 io.containerd.runtime.v1.linux runc            
 Default Runtime: runc                                                                                                                                                                        
 Init Binary: docker-init   
 containerd version: c623d1b36f09f8ef6536a057bd658b3aa8632828                                                                                                                                 
 runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.8.0-3-amd64
 Operating System: Debian GNU/Linux bullseye/sid
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.68GiB
 Name: asus-ux305
 ID: JT27:3DKP:F4BH:MFN3:7FAM:J4FA:I5SK:HG6W:T7UV:IUTP:3OSN:5SET
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio weight support
WARNING: No blkio weight_device support

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ uname -v
#1 SMP Debian 5.8.14-1 (2020-10-10)

$ kind create cluster                                                                           
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.19.1) 🖼
 ✗ Preparing nodes 📦  
ERROR: failed to create cluster: docker run error: command "docker run --hostname kind-control-plane --name kind-control-plane --label io.x-k8s.kind.role=control-plane --privileged --securit
y-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro --detach --tty --label io.x-k8s.kind.cluster=kind --
net kind --restart=on-failure:1 --publish=127.0.0.1:36833:6443/TCP kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600" failed with error: exit statu
s 125
Command Output: 4f6787e424d8822052e1ada7faec4e2b262acf7fc7f54a1e892000bdfe78e062
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: unknown capability "CAP_PERFMON": unknown.

@sserantes sserantes added the kind/bug Categorizes issue or PR as related to a bug. label Oct 22, 2020
@BenTheElder
Copy link
Member

moby/moby#41562

This is arguably a bug in docker. You should probably roll back to a stable docker release.

@BenTheElder BenTheElder added kind/external upstream bugs and removed kind/bug Categorizes issue or PR as related to a bug. labels Oct 22, 2020
@BenTheElder
Copy link
Member

When containerd has an updated runc release we'll ship it but in the meantime the docker patch is necessary and this docker beta release is broken.

@sserantes
Copy link
Author

Thanks!! That was the issue. I install docker version 5:18.09.13-0debian-buster and everything is working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/external upstream bugs
Projects
None yet
Development

No branches or pull requests

2 participants