mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-16 19:43:41 +00:00
Add more useful command
This commit is contained in:
parent
d4b8630bca
commit
7896cb5d7b
@ -3,6 +3,7 @@
|
|||||||
# Created:2014-09-25
|
# Created:2014-09-25
|
||||||
|
|
||||||
alias docker-pid="sudo docker inspect --format '{{.State.Pid}}'"
|
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
|
#the implementation refs from https://github.com/jpetazzo/nsenter/blob/master/docker-enter
|
||||||
function docker-enter() {
|
function docker-enter() {
|
||||||
|
Loading…
Reference in New Issue
Block a user