1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Sebastiaan van Stijn ed8fb00b65
errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus
This reverts the changes made in 2a9c987e5a, which
moved the GetHTTPErrorStatusCode() utility to the errdefs package.

While it seemed to make sense at the time to have the errdefs package provide
conversion both from HTTP status codes errdefs and the reverse, a side-effect
of the move was that the errdefs package now had a dependency on various external
modules, to handle conversio of errors coming from those sub-systems, such as;

- github.com/containerd/containerd
- github.com/docker/distribution
- google.golang.org/grpc

This patch moves the conversion from (errdef-) errors to HTTP status-codes to a
 api/server/httpstatus package, which is only used by the API server, and should
not be needed by client-code using the errdefs package.

The MakeErrorHandler() utility was moved to the API server itself, as that's the
only place it's used. While the same applies to the GetHTTPErrorStatusCode func,
I opted for keeping that in its own package for a slightly cleaner interface.

Why not move it into the api/server/httputils package?

The api/server/httputils package is also imported in the client package, which
uses the httputils.ParseForm() and httputils.HijackConnection() functions as
part of the TestTLSCloseWriter() test. While this is only used in tests, I
wanted to avoid introducing the indirect depdencencies outside of the api/server
code.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 85b7df5ead93a79ed6c8ef83535c153f65ef116d)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
(cherry picked from commit b9af850d5d232d2d8e0800f4f0d7ceceb5bf84ff)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-24 14:16:40 -04:00
.github Remove refs to jhowardmsft from .go code 2019-09-25 10:51:18 -07:00
api errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus 2022-03-24 14:16:40 -04:00
builder buildkit: normalize build target and local platform 2021-10-20 12:47:07 +02:00
cli remove uses of deprecated pkg/term 2020-04-21 16:29:27 +02:00
client Update documentation links 2021-02-25 21:54:39 +01:00
cmd/dockerd cmd/dockerd: create panic.log file without readonly flag 2021-11-03 14:30:08 +01:00
container Swarm config: use absolute paths for mount destination strings 2021-05-18 09:25:34 +02:00
contrib dockerd-rootless.sh: Fix variable not double quotes cause unexpected behavior 2021-10-21 19:51:55 +02:00
daemon Merge pull request #43166 from thaJeztah/20.10_backport_fix_update_sync 2022-02-17 11:08:56 -08:00
distribution distribution: retry downloading schema config on retryable error 2022-03-05 20:29:10 +00:00
dockerversion info: remove "expected" check for tini version 2022-01-20 09:24:48 +01:00
docs docs: remove HostConfig.LxcConf field from API docs 2022-02-18 13:21:13 +01:00
errdefs errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus 2022-03-24 14:16:40 -04:00
hack update containerd binary to v1.5.10 2022-03-04 19:36:34 +01:00
image replace json.Unmarshal with NewFromJSON in Create 2021-02-17 21:18:19 +01:00
integration daemon.WithCommonOptions() fix detection of user-namespaces 2021-12-15 18:20:07 +09:00
integration-cli integration: remove KernelMemory tests 2021-05-18 09:25:38 +02:00
internal/test/suite integration-cli: move each test suite to its own TestX testing function 2019-09-18 18:26:36 +00:00
layer replace pkg/locker with github.com/moby/locker 2020-09-10 22:15:40 +02:00
libcontainerd Added container ID to containerd task delete event messages 2020-10-30 20:58:57 -07:00
oci Fix daemon panic when starting container with invalid device cgroup rule 2021-02-17 21:16:01 +01:00
opts opts: unify host-options, and use consts 2020-10-31 16:44:21 +01:00
patches update archive/tar patch for go 1.16 2021-07-16 19:45:14 +02:00
pkg chrootarchive: don't create parent dirs outside of chroot 2021-08-19 20:49:31 +00:00
plugin Use docker media type for plugin layers 2021-04-06 16:52:54 +00:00
profiles seccomp: add support for "clone3" syscall in default policy 2021-09-13 08:56:21 -07:00
project vendor: opencontainers/selinux v1.8.0, and remove selinux build-tag and stubs 2020-12-24 00:47:16 +01:00
quota quota: adjust build-tags to allow build without CGO 2021-09-20 14:19:22 +01:00
reference fix goimports 2020-02-11 22:16:54 +09:00
registry registry.loginV2(): minor cleanup 2020-10-29 22:26:57 +01:00
reports Fix typos 2018-05-16 09:15:43 +08:00
restartmanager unconvert: remove unnescessary conversions 2019-09-18 12:57:33 +02:00
rootless rootless: fix getCurrentOOMScoreAdj 2021-04-01 12:11:27 +02:00
runconfig pkg/sysinfo: rm duplicates 2020-06-26 16:19:52 -07:00
testutil testutil: daemon.Cleanup(): cleanup more directories 2021-11-10 14:12:09 +01:00
vendor vendor: bump etcd v3.3.27 2022-02-18 12:55:15 +01:00
volume Use real root with 0701 perms 2021-01-26 17:23:32 +00:00
.DEREK.yml Update .DEREK.yml 2019-05-06 13:27:04 -07:00
.dockerignore update .dockerignore to prevent '-unsupported' builds 2020-01-13 12:55:15 +01:00
.gitignore Use -X ldflags to set dockerversion package vars 2019-12-02 10:21:41 -08:00
.mailmap Update authors and mailmap 2020-08-06 01:57:12 +02:00
AUTHORS Update authors and mailmap 2020-08-06 01:57:12 +02:00
CHANGELOG.md Fix some typos 2018-09-07 13:13:47 +08:00
codecov.yml Add code coverage report and codecov config 2018-01-16 16:50:56 -05:00
CONTRIBUTING.md Update CONTRIBUTING.md to have an option to keep name anonymous if requested 2019-07-15 16:04:11 +02:00
Dockerfile [20.10] update to go 1.16.15 to address CVE-2022-24921 2022-03-04 16:42:56 +01:00
Dockerfile.buildx Dockerfile.buildx: update buildx to v0.5.1 2021-02-03 13:54:27 +01:00
Dockerfile.e2e [20.10] update to go 1.16.15 to address CVE-2022-24921 2022-03-04 16:42:56 +01:00
Dockerfile.simple [20.10] update to go 1.16.15 to address CVE-2022-24921 2022-03-04 16:42:56 +01:00
Dockerfile.windows [20.10] update to go 1.16.15 to address CVE-2022-24921 2022-03-04 16:42:56 +01:00
Jenkinsfile Jenkinsfile: remove Windows RS1 as it reached end of support 2022-01-20 10:14:29 +01:00
LICENSE Update LICENSE 2018-09-12 14:27:53 +01:00
MAINTAINERS Add myself as a curator 2020-01-09 15:03:38 -05:00
Makefile Makefile: remove empty targets, and slight refactor 2020-05-01 16:48:07 +02:00
NOTICE switch kr/pty to creack/pty v1.1.7 2019-07-29 16:59:08 -07:00
poule.yml Poule: remove random assign 2019-09-05 20:57:17 +02:00
README.md Add "Lego set" back in README.md 2017-10-10 14:10:39 +00:00
ROADMAP.md Fix some typos in ROADMAP.md 2019-01-25 14:27:13 +08:00
SECURITY.md Update SECURITY.md to have an option to keep name anonymous if requested. 2019-06-18 16:37:16 +00:00
TESTING.md TESTING.md: note that integration-cli is deprecated 2020-12-18 07:51:46 +01:00
vendor.conf vendor: bump etcd v3.3.27 2022-02-18 12:55:15 +01:00
VENDORING.md fix the bare url and the Summary of http://semver.org 2017-01-17 16:20:11 +08:00

The Moby Project

Moby Project logo

Moby is an open-source project created by Docker to enable and accelerate software containerization.

It provides a "Lego set" of toolkit components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts and professionals to experiment and exchange ideas. Components include container build tools, a container registry, orchestration tools, a runtime and more, and these can be used as building blocks in conjunction with other tools and projects.

Principles

Moby is an open project guided by strong principles, aiming to be modular, flexible and without too strong an opinion on user experience. It is open to the community to help set its direction.

  • Modular: the project includes lots of components that have well-defined functions and APIs that work together.
  • Batteries included but swappable: Moby includes enough components to build fully featured container system, but its modular architecture ensures that most of the components can be swapped by different implementations.
  • Usable security: Moby provides secure defaults without compromising usability.
  • Developer focused: The APIs are intended to be functional and useful to build powerful tools. They are not necessarily intended as end user tools but as components aimed at developers. Documentation and UX is aimed at developers not end users.

Audience

The Moby Project is intended for engineers, integrators and enthusiasts looking to modify, hack, fix, experiment, invent and build systems based on containers. It is not for people looking for a commercially supported system, but for people who want to work and learn with open source code.

Relationship with Docker

The components and tools in the Moby Project are initially the open source components that Docker and the community have built for the Docker Project. New projects can be added if they fit with the community goals. Docker is committed to using Moby as the upstream for the Docker Product. However, other projects are also encouraged to use Moby as an upstream, and to reuse the components in diverse ways, and all these uses will be treated in the same way. External maintainers and contributors are welcomed.

The Moby project is not intended as a location for support or feature requests for Docker products, but as a place for contributors to work on open source code, fix bugs, and make the code more useful. The releases are supported by the maintainers, community and users, on a best efforts basis only, and are not intended for customers who want enterprise or commercial support; Docker EE is the appropriate product for these use cases.


Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Moby may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Licensing

Moby is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.