Skip to content
Snippets Groups Projects
Commit 612542ce authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

add TOC to practices page

parent 0d738420
No related branches found
No related tags found
No related merge requests found
[[_TOC_]]
# Good Docker Practices
## Keep the Docker image simple (micro-services)
......@@ -25,20 +27,20 @@ should work; people should think".
## When possible use container orchestration
Getting containers to interact and cooperate can be tricky, so use one of
container tools like Kubernetes or Docker Compose to do this.
the orcestration tools like Kubernetes or Docker Compose to do this.
## Use CI/CD (i.e., automation) to keep Docker images up-to-date
Set up automation to rebuild your Docker images periodically making sure
that you disable caching when building. This way you will get the most
up-to-date and secure base images for your images.
that you disable caching when building. This way your image will have the
most up-to-date and secure base images.
## Send diagnostic output to standard output
In the traditional server world we are used to sending logs to files. With
Docker containers it is usually better to send diagnostic output to
standard output. Kubernetes and other orchestration tools are designed
with the expectation that logging is senet to standard output.
with the expectation that logging is sent to standard output.
## Run containers in "read-only" mode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment