search

Home  >  Q&A  >  body text

docker容器内部如何调用宿主机系统的命令?

如题,docker容器内调用宿主机的系统命令?

黄舟黄舟2769 days ago1326

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-24 09:14:46

    Do you have to do this? If you want to do this, you probably need to connect via ssh.
    Install an sshd service on the host and an ssh client on the container. SSH connection should be possible.

    reply
    0
  • 迷茫

    迷茫2017-04-24 09:14:46

    This is a very unrealized feature and a security event prohibited by Docker.

    reply
    0
  • Cancelreply