Skip to content
Snippets Groups Projects
docker_host_port.sh 127 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/sh
    TEMPLATE="{{ (index (index .NetworkSettings.Ports \"${1}/tcp\") 0).HostPort }}"
    docker inspect -f "${TEMPLATE}" ${2}