docker进入容器内部执行命令
[root@bogon ~]# docker ps -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 38a2cae4c32f jenkinsci/jenkins "/sbin/tini -- /us..." 6 seconds ago Up 5 seconds 50000/tcp, 0.0.0.0:8085->8080/tcp jenkins [root@bogon ~]# [root@bogon ~]# docker exec -it 38a2cae4c32f sh $ su root
root@jenkins-7b46757695-4hx6f:/#