Add more useful command

pull/18/head
Baohua Yang 2014-09-26 17:46:05 +08:00
parent d4b8630bca
commit 7896cb5d7b
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# Created:2014-09-25
alias docker-pid="sudo docker inspect --format '{{.State.Pid}}'"
alias docker-ip="sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}'"
#the implementation refs from https://github.com/jpetazzo/nsenter/blob/master/docker-enter
function docker-enter() {