Docker exec 命令
Docker 教程
· 2019-02-18 13:41:57
docker exec :在运行的容器中执行命令
语法
docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
OPTIONS说明:
-
-d :分离模式: 在后台运行
-
-i :即使没有附加也保持STDIN 打开
-
-t :分配一个伪终端
实例
在容器mynginx中以交互模式执行容器内/root/codercto.sh脚本
codercto@codercto:~$ docker exec -it mynginx /bin/sh /root/codercto.sh http://www.codercto.com/
在容器mynginx中开启一个交互模式的终端
codercto@codercto:~$ docker exec -i -t mynginx /bin/bash root@b1a0703e41e7:/#
点击查看所有 Docker 教程 文章: https://www.codercto.com/courses/l/15.html
Deep Learning
Ian Goodfellow、Yoshua Bengio、Aaron Courville / The MIT Press / 2016-11-11 / USD 72.00
"Written by three experts in the field, Deep Learning is the only comprehensive book on the subject." -- Elon Musk, co-chair of OpenAI; co-founder and CEO of Tesla and SpaceX Deep learning is a for......一起来看看 《Deep Learning》 这本书的介绍吧!