Skip to content

error while loading shared libraries: libapt-private.so.0.0: cannot open shared object file: No such file or directory #6

Open
@yanruogu

Description

@yanruogu

environment:

kubernetes: v.1.11.10
docker: 17.09.1-ce
os: ubuntu 16.04

I use sysconf_test like this:

kubectl create configmap detection --from-file=./detection.so
kubectl create configmap sysconf --from-file=./sysconf_test

and then,deploy a pod:

kind: Deployment
metadata:
  name: test-nginx
spec:
  replicas: 1
  template:
    metadata:
      labels:
        tag: lxcfs
        name: test-nginx
    spec:
      volumes:
        - name: detection
          configMap:
            name: detection
        - name: sysconf
          configMap:
             name: sysconf
      containers:
        - name: test-nginx
          image: openresty/openresty
          volumeMounts:
            - name: detection
              mountPath: /usr/lib
            - name: sysconf
              mountPath: /tmp
          resources:
            requests:
              cpu: "0.2"
              memory: "64Mi"
            limits:
              cpu: "1"
              memory: "128Mi"

when i login to pod, and execute command:

root@k8s-m:/home/www/server/kube-yamls/test# kubectl exec -it test-nginx-5c6bf4fb88-jlh74  /bin/bash 
root@test-nginx-5c6bf4fb88-jlh74:/# apt install procps
apt: error while loading shared libraries: libapt-private.so.0.0: cannot open shared object file: No such file or directory

this sysconf make something wrong

How can I fix it ?

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