-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for Docker images #4312
Conversation
ninaspitfire
commented
May 15, 2017
- Add Docker image info to the Getting Started pages.
- Add/extend dedicated Docker page for each (Unix) Beat.
- Refactor some duplicated fragments into includes with attributes.
- Remove some whitespaces (sorry for the noisy diff, my editor just did this stuff).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (just one minor comment). Thanks so much for the refactoring!
libbeat/docs/shared-docker.asciidoc
Outdated
code can be found on | ||
https://github.com/elastic/beats-docker/tree/{doc-branch}[GitHub]. | ||
|
||
=== Configuring {beatname_uc} on Docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a [float] tag to make this a sub-section of the main topic (right now, when the doc is built, it becomes a separate topic). You might need to add [float] tags to the other sub-sections in this topic. The main point is that all the content about Running on Docker should be in a single topic, IMHO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I added the [float]
tags; it looks much better now.
I'm glad I didn't cross a line with the refactors. I always get nervous pushing patches for new projects in new languages. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a few comments for the non linux platforms, apart from those this LGTM!
libbeat/docs/shared-docker.asciidoc
Outdated
|
||
endif::[] | ||
|
||
The base image is https://hub.docker.com/_/centos/[Centos 7] and the source |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use [centos:7]
for consistency.
|
||
[float] | ||
[[monitoring-host]] | ||
=== Monitoring the Host Machine | ||
When executing Metricbeat in a container, there are some important | ||
things to be aware of if you want to monitor the host machine or other | ||
containers. Let's walk-through some examples using Docker as our container | ||
orchestration tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few clarifications or warnings could be provided for Docker on Windows + Mac users where the bind mounts won't work as expected.
isolated virtual network, with a limited view of network traffic. You may wish | ||
to connect the container directly to the host network in order to see traffic | ||
destined for, and originating from, the host system. With +docker run+, this can | ||
be achieved by specifying +--network=host+. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here, for users on Docker for Mac+Windows have a VM layer that won't let them sniff things happening on the real host OS, unless settings have been tweaker.
Thanks, @dliappis. Added your suggestions. |
OK to merge this now, @ruflin? |
Happy to merge if @dliappis gives a 👍 |
jenkins, retest it |
LGTM from me as well |
@dedemorton Can you take care of the backporting in case we backport this? |
@ruflin Sure. I just need to backport this to 5.4 right? |
@dedemorton: yes, thanks. The images in question existed in "alpha" state earlier, but I think it's best to call 5.4 the release version, and thus only backport that far. |
Backport: elastic#4312, elastic#4405, and elastic#4408 into 5.4