swarmkit
swarmkit copied to clipboard
A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.
Add `Unwrap() error` to custom error types to work with standard library
Dear team, Design question. Current `Context` implementation in [context.go](https://github.com/moby/swarmkit/blob/master/template/context.go) populates the "variable namespace" with identifiers like `.Service.ID`, `.Node.ID` etc which are _locally-scoped_, e.g. they describe service, task or local node....
``` services: foo: image: ubuntu volumes: - type: volume source: bar volume: { subpath: baz } target: /baz ``` From https://github.com/moby/swarmkit/blob/master/swarmd/dockerexec/container.go#L338-L343: ``` if m.VolumeOptions != nil { mount.VolumeOptions = &enginemount.VolumeOptions{...
**- What I did** Use testifylint to identify issues and fix them. The linter is not enabled until golangci-lint is in v2 **- How I did it** **- How to...
**- What I did** use standard `errors` instead of `github.com/pkg/errors` This also implies using errorlint **- How I did it** **- How to test it** **- Description for the changelog**
**- What I did** Update golangci-lint to v.2.1.6 and migrate associated configuration **- How I did it** **- How to test it** **- Description for the changelog**
### Description When using Docker Swarm, if a node fails to pull an image due to insufficient disk space, Swarm continuously retries the download in a tight loop. In our...
**- What I did** Replacement for #3106 which passes CI. **- How I did it** Removed protocol parts from commit https://github.com/moby/swarmkit/pull/3106/commits/8d68df69f6455a81c8b63540ee490de64271e465 and re-added it as new commit which does not...
Deploying to a swarm cluster does not work with volume `type=image`. ``` docker -H ssh://swarm.lan stack deploy -c compose.yaml test ``` Got: failed to create service test_with_image: Error response from...
Note: Reposted [here](https://github.com/moby/moby/issues/49780) for better visibility. --- **Summary** SwarmKit’s CSI implementation currently uses a _flat_ `StagingTargetPath` of the form `/data/staged/` when issuing `NodeStageVolume` requests. While this complies with the [CSI...