Skip to content

Commit

Permalink
Add table of content
Browse files Browse the repository at this point in the history
  • Loading branch information
FuriKuri committed Oct 9, 2016
1 parent 027ccbf commit 2dd709b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# docker-best-practices
There are so much useful tips out there, how to use docker. This great tips are part of blog posts, talks or within a documentation. I tought it might be useful, to collect all this docker best pratices, which are distributed all over these resources.

The idea to collect all in one place based on this [tweet](https://twitter.com/FuriKuri/status/777947836327534593).

Feel free to add new best practices and create a PR.

# Table of contents
* [Docker image](#docker-image)
* [Docker container](#docker-container)
* [Docker security](#docker-security)
* [Application running within docker](#application-running-within-docker)

## Docker image
### Minizing layer size
Some installations create data, which are not be needed. Try to remove this data in the same layer.
Expand Down Expand Up @@ -61,7 +69,7 @@ USER myapp

For more detailed information see [Best practices for writing Dockerfiles](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#user).

## Applications running within docker
## Application running within docker
### Logging to stdout
To handle logs in your service easily, write all your logs to `stdout`. This uniform process makes it easy for docker deamon to grab this stream.

Expand Down

0 comments on commit 2dd709b

Please sign in to comment.