docker容器运行终端

docker exec -it 容器id /bin/sh(或/bin/bash,/bin/zsh等)
参数:
  • -d :分离模式: 在后台运行

  • -i :即使没有附加也保持STDIN 打开

  • -t :分配一个伪终端

猜你喜欢

转载自www.cnblogs.com/arisnotargon/p/12302238.html
今日推荐