docs: Update compatibility.md#385
Conversation
| | - order | SK | SK | SK | SK | | | | | | | | | | | ||
| | - parallelism | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - devices | C | C | C | C | C | C | C | C | C | C | C | C | C | | ||
| | - depends_on | CS | CS | CS | CS | CS | CS | CS | CS | CS | CS | CS | CS | CS | |
There was a problem hiding this comment.
Doesn't work on swarm, there is no notion of depends_on in swarm, the key is ignored (should be in UnsupportedProperties, not sur why it's not…)
There was a problem hiding this comment.
The depends_on option is ignored when deploying a stack in swarm mode with a version 3 Compose file.
Good catch.
| | - timeout | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - hostname | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - image | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - init | * | | | | | | | | | | | | | |
There was a problem hiding this comment.
Probably not support in Kubernetes if it's in 3.7, might be wrong though
| | - ipc | CK | CK | CK | CK | CK | CK | CK | CK | CK | CK | CK | CK | CK | | ||
| | - isolation | CS | CS | CS | | | | | | | | | | | | ||
| | - labels | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - links | | | | | | | | | | | | | | |
There was a problem hiding this comment.
Should be supported in C (compose) I think
| | - working_dir | Y | Y | Y | Y | Y | Y | Y | | ||
| | Features | 3.7 | 3.6 | 3.5 | 3.4 | 3.3 | 3.2 | 3.1 | 3.0 | 2.4 | 2.3 | 2.2 | 2.1 | 2.0 | | ||
| |------------------------------|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----| | ||
| | configs | * | * | * | * | * | | | | | | | | | |
There was a problem hiding this comment.
Config should work the same way secret are…
| | - ports | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - mode: | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - host | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | | ||
| | - ingress | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | CS? | |
| | - volume | * | * | * | * | * | * | | | | | | | | | ||
| | - bind | * | * | * | * | * | * | | | | | | | | | ||
| | - tmpfs | * | * | * | * | * | * | | | | | | | | | ||
| | - bind | CS | CS | CS | CS | CS | CS | | | | | | | | |
There was a problem hiding this comment.
Didn't we had support for bind mount in k8s ? 🤔
shin-
left a comment
There was a problem hiding this comment.
A few notes on Compose support. Also, indentation doesn't work inside table cells.
| | - working_dir | Y | Y | Y | Y | Y | Y | Y | | ||
| | Features | 3.7 | 3.6 | 3.5 | 3.4 | 3.3 | 3.2 | 3.1 | 3.0 | 2.4 | 2.3 | 2.2 | 2.1 | 2.0 | | ||
| |------------------------------|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| | ||
| | configs.<name> (long syntax) | * | * | * | * | * | | | | | | | | | |
There was a problem hiding this comment.
configs is SK - Compose doesn't have support: docker/compose#5739
There was a problem hiding this comment.
My bad, I saw
def get_configs(self):
return {} if self.version < const.COMPOSEFILE_V3_3 else self.config.get('configs', {})
and the doc says
Defining and using configs in compose files
Both the `docker compose` and `docker stack` commands support defining configs in a compose file. See the Compose file reference for details.
I assumed it was supported.
| | - configs | * | * | * | * | * | | | | | | | | | | ||
| | - cgroup_parent | C | C | C | C | C | C | C | C | C | C | C | C | C | | ||
| | - container_name | C | C | C | C | C | C | C | C | C | C | C | C | C | | ||
| | - credential_spec | * | * | * | * | * | | | | | | | | | |
There was a problem hiding this comment.
Note that support for credential_spec in Compose is pending: docker/compose#5488
| | - labels | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - mode | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - placement | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - replicas | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | |
There was a problem hiding this comment.
Supported in Compose if compatibility mode is enabled: https://docs.docker.com/compose/compose-file/compose-versioning/#compatibility-mode
| | - resources | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - limits | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - reservations | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - restart_policy | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | |
There was a problem hiding this comment.
Partially supported in Compose if compatibility mode is enabled: https://docs.docker.com/compose/compose-file/compose-versioning/#compatibility-mode
| | - mode | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - placement | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - replicas | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | | ||
| | - resources | SK | SK | SK | SK | SK | SK | SK | SK | | | | | | |
There was a problem hiding this comment.
Supported in Compose if compatibility mode is enabled: https://docs.docker.com/compose/compose-file/compose-versioning/#compatibility-mode
Codecov Report
@@ Coverage Diff @@
## master #385 +/- ##
=======================================
Coverage 58.34% 58.34%
=======================================
Files 59 59
Lines 3260 3260
=======================================
Hits 1902 1902
Misses 1093 1093
Partials 265 265Continue to review full report at Codecov.
|
| | - network | C | C | C | C | C | C | C | C | C | C | C | C | C | | ||
| | - shm_size | C | C | C | C | C | C | C | C | C | C | C | C | C | | ||
| | - target | C | C | C | C | C | C | C | C | C | C | C | C | C | | ||
| | - cap_add | CK | CK | CK | CK | CK | CK | CK | C | C | C | C | C | C | |
There was a problem hiding this comment.
Just checked, cap_add/cap_drop are ignored in kube-compose
There was a problem hiding this comment.
Just re-checked they are not, just wasn't looking at the right place
| | - timeout | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - hostname | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - image | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - init | CK | | | | | | | | | | | | | |
There was a problem hiding this comment.
seemed to be ignored in kube-compose
|
Ping @vdemeester and @simonferquel to update their reviews |
| | - working_dir | Y | Y | Y | Y | Y | Y | Y | | ||
| | Features | 3.7 | 3.6 | 3.5 | 3.4 | 3.3 | 3.2 | 3.1 | 3.0 | 2.4 | 2.3 | 2.2 | 2.1 | 2.0 | | ||
| |------------------------------|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| | ||
| | configs.<name> (long syntax) | CK | CK | CK | CK | CK | | | | | | | | | |
There was a problem hiding this comment.
The whole configs section should be SK, not CK
2236763 to
21ffaec
Compare
Signed-off-by: Antony MECHIN <antony.mechin@docker.com>
21ffaec to
088131f
Compare
|
Ping @shin- for a review update |
shin-
left a comment
There was a problem hiding this comment.
1 instance of configs was missed
| | - cpu_quota | | | | | | | | | C | C | C | C | C | | ||
| | - cpuset | | | | | | | | | C | C | C | C | C | | ||
| | - command | * | * | * | * | * | * | * | * | * | * | * | * | * | | ||
| | - configs | CK | CK | CK | CK | CK | | | | | | | | | |
There was a problem hiding this comment.
There was a problem hiding this comment.
Since @Dimrok is on PTO, can we merge and follow up?
There was a problem hiding this comment.
Yep, intentionally left as a comment as to not block this any further. Merge away!
There was a problem hiding this comment.
Yep, intentionally left as a comment as to not block this any further. Merge away!
|
This seems like a pretty massive/intractable PR review-wise, given that it clearly contains an improvement over the status quo perhaps we should merge it and correct that last few remaining inaccuracies in a followup (or followups)? |
- What I did
- Description for the changelog
Update documentation regarding composefile version compatibility.
- A picture of a cute animal (not mandatory but encouraged)
(credits: u/kaitlynsara06 from reddit)