码迷,mamicode.com
首页 > 其他好文 > 详细

003_如何正确的进入容器

时间:2017-04-20 18:20:43      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:layer   keep   github   verify   oca   cat   logs   https   stat   

一、

$ docker exec -it ele_zookeeper /bin/bash

二、

参考nsenter git地址=>https://github.com/jpetazzo/nsenter

arun:tmp arunyang$ docker run --rm jpetazzo/nsenter cat /nsenter > /tmp/nsenter && chmod +x /tmp/nsenter
Unable to find image ‘jpetazzo/nsenter:latest‘ locally
latest: Pulling from jpetazzo/nsenter
5c90d4a2d1a8: Pulling fs layer
..........
0c4337c5a938: Pulling fs layer
72024cea4c47: Waiting
..........
0c4337c5a938: Waiting
c6c4c486dd77: Verifying Checksum
c6c4c486dd77: Download complete
..........
c6c4c486dd77: Pull complete
23f698ff1fd0: Download complete
b39fba43fbdb: Verifying Checksum
..........
0ed6ac9f06ed: Pull complete
..........
Digest: sha256:a30e7da907a9abb715027677c21468005beee06251b7737c86f84fa148d572b0
Status: Downloaded newer image for jpetazzo/nsenter:latest
arun:bin arunyang$ mv /tmp/nsenter /usr/local/bin/

 

003_如何正确的进入容器

标签:layer   keep   github   verify   oca   cat   logs   https   stat   

原文地址:http://www.cnblogs.com/itcomputer/p/6740058.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!