💾 Archived View for freeshell.de › tldr › docker-inspect.gmi captured on 2024-02-05 at 10:43:54. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Return low-level information on Docker objects.
docker inspect
docker inspect {container|image|ID}
docker inspect --format='{range .NetworkSettings.Networks}{.IPAddress}{end}' {container}
docker inspect --format='{.LogPath}' {container}
docker inspect --format='{.Config.Image}' {container}
docker inspect --format='{json .Config}' {container}
docker inspect --format='{range $p, $conf := .NetworkSettings.Ports} {$p} -> {(index $conf 0).HostPort} {end}' {container}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).