This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker [2021/08/28 11:06] – [Follow a container's log] alexk7110 | docker [2022/05/28 18:32] (current) – alexk7110 | ||
---|---|---|---|
Line 26: | Line 26: | ||
{{.Networks}}\t{{.Ports}}\t{{.Size}}" | {{.Networks}}\t{{.Ports}}\t{{.Size}}" | ||
</ | </ | ||
- | ==== Follow the log of a container | + | ==== Follow the log of your app ==== |
<code bash> | <code bash> | ||
docker logs -f container_name | docker logs -f container_name | ||
</ | </ | ||
- | ==== Information on a network ==== | + | |
- | <code bash> | + | |
- | docker network inspect network_name | + | |
- | </ | + | |
==== Information on a container ==== | ==== Information on a container ==== | ||
<code bash> | <code bash> | ||
Line 47: | Line 44: | ||
<code bash> | <code bash> | ||
docker network prune | docker network prune | ||
+ | </ | ||
+ | ==== Get network information ==== | ||
+ | <code bash> | ||
+ | docker network inspect network_name | ||
</ | </ | ||
---- | ---- |