-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Move logging config under separate key in v2 compose files #2626
Move logging config under separate key in v2 compose files #2626
Conversation
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
Reorganize JSON schemas Update fixtures Update service validation function Signed-off-by: Joffrey F <joffrey@docker.com>
Additional test for legacy compose file. Signed-off-by: Joffrey F <joffrey@docker.com>
@@ -523,6 +530,8 @@ def _get_container_create_options( | |||
for k in DOCKER_CONFIG_KEYS if k in self.options) | |||
container_options.update(override_options) | |||
|
|||
container_options.update(self.get_logging_options()) | |||
|
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.
Why is this required? I thought we only had to provide it to the HostConfig section which is done below.
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.
You're right, this doesn't look useful since those keys will be removed a few lines later.
A question and a request, but generally looks good. I'd really like to merge the fields_schema and service_schema into a single file, but I guess it's not urgent. |
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
Signed-off-by: Joffrey F <joffrey@docker.com>
@dnephin Addressed everything - PTAL. |
LGTM! thanks for making that test change |
LGTM |
…nder-separate-key Move logging config under separate key in v2 compose files
Implements #2503, based on #2561