Merge pull request #1065 from bastianbowe2000/patch-2

Add docker logs instructions
This commit is contained in:
Rico Sta. Cruz 2020-01-01 09:58:52 +11:00 committed by GitHub
commit 6d9358a908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -102,6 +102,18 @@ $ docker kill $ID
Manage `container`s using ps/kill. Manage `container`s using ps/kill.
### `docker logs`
```
$ docker logs $ID
$ docker logs $ID 2>&1 | less
$ docker logs -f $ID # Follow log output
```
See what's being logged in an `container`.
Images Images
------ ------