Tag: docker-enter
-
docker–建议下载bashrc_docker 脚本,利用docker-pid和docker-enter命令进入容器
建议下载 .bashrc_docker,并将内容放到 .bashrc 中。 这个文件中定义了很多方便使用 Docker 的命令,例如 docker-pid 可以获取某个容器的 PID;而 docker-enter 可以进入容器或直接在容器内执行命令。 # wget -P ~ https://github.com/yeasy/docker_practice/raw/master/_local/.bashrc_docker; –2017-05-19 16:04:09– https://github.com/yeasy/docker_practice/raw/master/_local/.bashrc_docker Resolving github.com (github.com)… 192.30.255.113, 192.30.255.112 Connecting to github.com (github.com)|192.30.255.113|:443… connected. HTTP request sent, awaiting response… 302 Found Location: https://raw.githubusercontent.com/yeasy/docker_practice/master/_local/.bashrc_docker [following] –2017-05-19 16:04:11– https://raw.githubusercontent.com/yeasy/docker_practice/master/_local/.bashrc_docker Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.88.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.88.133|:443… connected. HTTP request sent,…