Skip to content

Instantly share code, notes, and snippets.

@horaciod
Created September 20, 2021 20:29
Show Gist options
  • Save horaciod/3624656d8859badac0f28099966509e3 to your computer and use it in GitHub Desktop.
Save horaciod/3624656d8859badac0f28099966509e3 to your computer and use it in GitHub Desktop.
obtener ip de un contenedor docker corriendo
#!/bin/bash
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $1
@horaciod
Copy link
Author

pasar el nombre para obtener el ip de la maquina docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment