From 7896cb5d7b252d1b31d7e707ca7f0c7995e8a3e7 Mon Sep 17 00:00:00 2001 From: Baohua Yang Date: Fri, 26 Sep 2014 17:46:05 +0800 Subject: [PATCH] Add more useful command --- _local/bashrc_docker | 1 + 1 file changed, 1 insertion(+) diff --git a/_local/bashrc_docker b/_local/bashrc_docker index dde0d93..c913da3 100644 --- a/_local/bashrc_docker +++ b/_local/bashrc_docker @@ -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() {