Skip to content

Error: failed to create containerd container: get apparmor_parser  #7

@dyrnq

Description

@dyrnq
Error: failed to create containerd container: get apparmor_parser version: exec: "apparmor_parser": executable file not found in $PATH

journalctl -exu containerd --no-pager

Jan 13 08:45:23 m223 containerd[664]: time="2023-01-13T08:45:23.953973499+08:00" level=error msg="CreateContainer within sandbox \"5da31a211dd52593b2326553a11c55f216a745b55ae530af931f5dd5e4fa22c8\" for &ContainerMetadata{Name:nginx,Attempt:0,} failed" error="failed to create containerd container: get apparmor_parser version: exec: \"apparmor_parser\": executable file not found in $PATH"

journalctl -exu kubelet --no-pager

Jan 13 08:46:48 m223 kubelet[720]: E0113 08:46:48.012377     720 remote_runtime.go:442] "CreateContainer in sandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to create containerd container: get apparmor_parser version: exec: \"apparmor_parser\": executable file not found in $PATH" podSandboxID="5da31a211dd52593b2326553a11c55f216a745b55ae530af931f5dd5e4fa22c8"
Jan 13 08:46:48 m223 kubelet[720]: E0113 08:46:48.012632     720 kuberuntime_manager.go:862] container &Container{Name:nginx,Image:nginx:latest,Command:[],Args:[],WorkingDir:,Ports:[]ContainerPort{ContainerPort{Name:http,HostPort:0,ContainerPort:80,Protocol:TCP,HostIP:,},},Env:[]EnvVar{},Resources:ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{},},VolumeMounts:[]VolumeMount{VolumeMount{Name:maven-cache,ReadOnly:false,MountPath:/usr/share/nginx/html,SubPath:,MountPropagation:nil,SubPathExpr:,},VolumeMount{Name:kube-api-access-czkgt,ReadOnly:true,MountPath:/var/run/secrets/kubernetes.io/serviceaccount,SubPath:,MountPropagation:nil,SubPathExpr:,},},LivenessProbe:nil,ReadinessProbe:nil,Lifecycle:nil,TerminationMessagePath:/dev/termination-log,ImagePullPolicy:Always,SecurityContext:nil,Stdin:false,StdinOnce:false,TTY:false,EnvFrom:[]EnvFromSource{},TerminationMessagePolicy:File,VolumeDevices:[]VolumeDevice{},StartupProbe:nil,} start failed in pod test-nginx-65c6d4bf48-n55zn_default(77c2bdb2-9386-45da-8461-0cbc571b47d1): CreateContainerError: failed to create containerd container: get apparmor_parser version: exec: "apparmor_parser": executable file not found in $PATH
Jan 13 08:46:48 m223 kubelet[720]: E0113 08:46:48.012718     720 pod_workers.go:965] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"nginx\" with CreateContainerError: \"failed to create containerd container: get apparmor_parser version: exec: \\\"apparmor_parser\\\": executable file not found in $PATH\"" pod="default/test-nginx-65c6d4bf48-n55zn" podUID=77c2bdb2-9386-45da-8461-0cbc571b47d1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions