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

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

Open
yanruogu opened this issue Oct 30, 2019 · 0 comments

Comments

@yanruogu
Copy link

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 ?

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

No branches or pull requests

1 participant