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
Brian Goff 88c0271605 Don't set default platform on container create
This fixes a regression based on expectations of the runtime:

```
docker pull arm32v7/alpine
docker run arm32v7/alpine
```

Without this change, the `docker run` will fail due to platform
matching on non-arm32v7 systems, even though the image could run
(assuming the system is setup correctly).

This also emits a warning to make sure that the user is aware that a
platform that does not match the default platform of the system is being
run, for the cases like:

```
docker pull --platform armhf busybox
docker run busybox
```

Not typically an issue if the requests are done together like that, but
if the image was already there and someone did `docker run` without an
explicit `--platform`, they may very well be expecting to run a native
version of the image instead of the armhf one.

This warning does add some extra noise in the case of platform specific
images being run, such as `arm32v7/alpine`, but this can be supressed by
explicitly setting the platform.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2020-10-20 20:17:23 +00:00
.github
api Don't set default platform on container create 2020-10-20 20:17:23 +00:00
builder Merge pull request #41360 from lzhfromustc/GL_5 2020-09-12 21:43:05 -07:00
cli
client Update documentation to reflect deprecation of "NewEnvClient" 2020-10-03 15:12:30 +02:00
cmd/dockerd Merge pull request #41072 from AkihiroSuda/fix-41071 2020-10-01 11:56:00 -07:00
container
contrib Merge pull request #41156 from AkihiroSuda/rootless-new-shim-socket-path 2020-10-15 12:37:14 -07:00
daemon Don't set default platform on container create 2020-10-20 20:17:23 +00:00
distribution Disable manifest v2 schema 1 push 2020-07-31 20:13:58 +02:00
dockerversion
docs api: clarify "v" option behavior in the container remove endpoint 2020-09-23 12:34:52 +03:00
errdefs
hack Dockerfile: fix golang-ci-lint installer 2020-10-16 13:39:22 +02:00
image
integration Don't set default platform on container create 2020-10-20 20:17:23 +00:00
integration-cli Sterner warnings for unathenticated tcp 2020-09-25 00:21:54 +00:00
internal/test/suite
layer replace pkg/locker with github.com/moby/locker 2020-09-10 22:15:40 +02:00
libcontainerd Merge pull request #41527 from thaJeztah/no_oom_score_adj 2020-10-15 15:00:18 -07:00
oci oci: add tests for loading seccomp profiles 2020-09-29 20:15:43 +02:00
opts opts: simplify ValidateEnv to use os.LookupEnv 2020-08-14 16:58:30 +02:00
patches
pkg Also trim "~..." from AppArmor versions 2020-10-08 17:03:51 -07:00
plugin Remove redundant "os.IsNotExist" checks on os.RemoveAll() 2020-09-23 10:30:53 +02:00
profiles seccomp: add test for unmarshal default profile 2020-10-02 18:15:46 +02:00
project
quota quota: move test helper functions to extra file 2020-10-05 13:28:25 +00:00
reference
registry
reports
restartmanager
rootless
runconfig
testutil Upgrading the versions of images in Dockerfile. 2020-06-30 12:24:06 +08:00
vendor vendor: github.com/gofrs/flock v0.7.3 2020-10-06 12:12:33 +02:00
volume volume/local: add tests for size quota 2020-10-05 13:28:25 +00:00
.DEREK.yml
.dockerignore
.gitignore
.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
codecov.yml
CONTRIBUTING.md
Dockerfile Don't set default platform on container create 2020-10-20 20:17:23 +00:00
Dockerfile.buildx Bump Golang 1.13.15 2020-08-10 12:13:38 +02:00
Dockerfile.e2e Bump Golang 1.13.15 2020-08-10 12:13:38 +02:00
Dockerfile.simple Bump Golang 1.13.15 2020-08-10 12:13:38 +02:00
Dockerfile.windows Force Download-File function to use TLS 1.2 2020-09-20 23:18:16 +03:00
Jenkinsfile Windows CI: Make sure that CI fails on any error 2020-09-17 08:59:49 +03:00
LICENSE
MAINTAINERS
Makefile
NOTICE
poule.yml
README.md
ROADMAP.md
SECURITY.md
TESTING.md fix typos and grammar in docs 2020-06-26 17:30:59 -06:00
vendor.conf vendor: github.com/gofrs/flock v0.7.3 2020-10-06 12:12:33 +02:00
VENDORING.md

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.