Examples
Stuff to remember/keep in mind
-p (--publish)
is always in format:HOST:CONTAINER
Format examples
~> docker container inspect -f '{{range $key, $_ := .NetworkSettings.Networks}}{{println $key}}{{end}}' webhost
network1
network2
network3
Remove container automatically after exit (useful for testing)
docker container run --rm
Last updated
Was this helpful?