mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
7 lines
164 B
Bash
7 lines
164 B
Bash
#
|
|
# To get an IP of a container, simply do this:
|
|
# docker-ip YOUR_CONTAINER_ID
|
|
|
|
docker-ip() {
|
|
docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$@"
|
|
}
|