Interview Prep/Docker/Rapid-Fire Commands

Print a container's IP, exit code and restart count in one command.

IntermediateProductionRapid-Fire Commands
Answer
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{.State.ExitCode}} {{.RestartCount}}' web
All Docker questions Roadmap: Docker & containers

More on Rapid-Fire Commands