Escribir un script de usuario en el contenedor
[root @ linux-nodo1 ~] # vim docker_in. sh # ! / bin / fiesta # Uso nsenter de acceso ventana acoplable docker_in () { NAME_ID = $ 1 PID = $ (ventana acoplable inspeccionar --format " {{}} .State.Pid " $ NAME_ID) nsenter --target $ PID - - montar --uts --ipc --net - pid } docker_in $ 1 [root @ linux -node1 ~] # chmod + x docker_in. sh [root @ linux -node1 ~] # ./docker_in. sh mydocker [root @ 94bb1c151fbc / ] # salida de cierre de sesión [root @ linux -node1 ~] #