ces-build-lib icon indicating copy to clipboard operation
ces-build-lib copied to clipboard

findIp() without container object

Open schnatterer opened this issue 4 years ago • 1 comments

Make findIp() also run with a container ID String instead of a container Object.

e.g. overloaded (if possible)

  • String findIp(String containerId)
  • String findIp(container)

Or duck typed, if String use as ID, otherwise fall back to container.id.

schnatterer avatar Sep 06 '21 15:09 schnatterer

Another nice extension:

findNetwork()

docker inspect -f '{{range .NetworkSettings.Networks}}{{.NetworkID}}{{end}}' container

schnatterer avatar Sep 06 '21 15:09 schnatterer