Questions tagged [nsenter]

nsenter is a linux command allowing to run a program with namespaces of other processes.

nsenter is a linux command allowing to run a program with namespaces of other processes.

http://man7.org/linux/man-pages/man1/nsenter.1.html

20 questions
0
votes
0 answers

Providing shell access to particular docker container to user which is not added to docker group

My task is provide access to particular docker container without adding user to docker group. What I did 1) Made a nsenter-based script which must enter container (let's call it script1.sh) #!/bin/bash PID=$(docker inspect --format {{.State.Pid}}…
Paul Serikov
  • 2,550
  • 2
  • 21
  • 36
0
votes
2 answers

k8s: Error pulling images from ECR

We constantly get Waiting: ImagePullBackOff during CI upgrades. Anybody know whats happening? k8s cluster 1.6.2 installed via kops. During upgrades, we do kubectl set image and during the last 2 days, we are seeing the following error Failed to…
padlar
  • 375
  • 1
  • 4
  • 13
0
votes
3 answers

Start multiprocessing.process in namespace

I'm trying to start a new process from within an already created namespace (named 'test'). I've looked into a few methods including nsenter: import subprocess from nsenter import Namespace with Namespace(mypid, 'net'): # output network…
geekscrap
  • 965
  • 2
  • 12
  • 26
-2
votes
1 answer

How do I connect and manage Kubernetes cluster from POD using nsenter utility

I am using multi node Kubernetes cluster. I am using following YAML to connect and manage host machine. apiVersion: v1 kind: Pod metadata: name: my-nsenter-test spec: hostPID: true hostNetwork: true hostIPC: true containers: - name:…
Ashok Kumar
  • 105
  • 2
  • 8
-5
votes
3 answers

Is it possible to exec in to a K8s pod the same way we exec in to a docker containers or containers running inside of a pod?

Is it possible to exec in to a K8s pod the same way we exec into docker containers or containers running inside of a pod?p Edit - This question not about execing into a container in a pod. This is about the pod itself. Might be it's not possible but…
samshers
  • 1
  • 6
  • 37
  • 84
1
2