From 191666c79479ae7e387e776164a2aea7d1f9ad10 Mon Sep 17 00:00:00 2001 From: Shih Yu Ho Date: Mon, 27 Nov 2017 12:14:42 -0600 Subject: [PATCH] docker: add docker container logs example (#1680) --- pages/common/docker.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/docker.md b/pages/common/docker.md index 1cb6e56697100f..14c2d1c96fd84c 100644 --- a/pages/common/docker.md +++ b/pages/common/docker.md @@ -29,3 +29,7 @@ - Remove a stopped container: `docker container rm {{container}}` + +- Fetch and follow the logs of a container: + +`docker container logs -f {{container}}`