Skip to content

Commit 8f6ffe7

Browse files
committed
feat: add ip command to print container IP address
1 parent 669e641 commit 8f6ffe7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/defaultConfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
"command": "%action% %args%",
2929
"exec": false
3030
},
31+
"ip": {
32+
"comment": "Print container IP address",
33+
"service": "@host",
34+
"command": "docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' %args%"
35+
},
3136
"bash": {
3237
"comment": "Open the interactive terminal from default service container",
3338
"command": "%action% %args%"

0 commit comments

Comments
 (0)