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
Kir Kolyshkin 2aa13f86f0 idtools.MkdirAs*: error out if dir exists as file
Standard golang's `os.MkdirAll()` function returns "not a directory" error
in case a directory to be created already exists but is not a directory
(e.g. a file). Our own `idtools.MkdirAs*()` functions do not replicate
the behavior.

This is a bug since all `Mkdir()`-like functions are expected to ensure
the required directory exists and is indeed a directory, and return an
error otherwise.

As the code is using our in-house `system.Stat()` call returning a type
which is incompatible with that of golang's `os.Stat()`, I had to amend
the `system` package with `IsDir()`.

A test case is also provided.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2017-11-27 13:25:44 -08:00
.github Rename a few docker to moby 2017-10-25 13:56:12 +02:00
api Fix consumes MIME type for NetworkConnect 2017-11-18 22:34:23 -05:00
builder Merge pull request #35429 from dnephin/build-fails-on-long-label 2017-11-15 18:48:50 +01:00
cli
client Merge pull request #32914 from jamiehannaford/until-logging 2017-11-03 16:08:30 +01:00
cmd/dockerd Remove deprecated support for duplicate label-keys 2017-11-12 03:11:37 +01:00
container container: update real-time resources 2017-11-22 22:21:40 +01:00
contrib Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
daemon Merge pull request #35579 from dnephin/fix-layer-dne 2017-11-27 09:40:54 -08:00
distribution Remove Docker from some functions 2017-10-25 14:39:51 +02:00
dockerversion
docs Move "until" option to correct API version 2017-11-03 16:11:07 +01:00
hack graphdriver: custom build-time priority list 2017-11-16 19:43:34 -08:00
image LCOW: API change JSON header to string POST parameter 2017-10-06 15:26:48 -07:00
integration Fix layer DNE with duplicate layers. 2017-11-23 15:41:59 -05:00
integration-cli Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
internal internal: testutil: add DevZero helper 2017-11-08 03:45:55 +11:00
layer Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
libcontainerd Cancelation errors should not be logged 2017-11-14 20:32:20 -05:00
migrate/v1 LCOW: API: Add platform to /images/create and /build 2017-10-06 11:44:18 -07:00
oci Don't special case /sys/firmware in masked paths 2017-11-08 12:10:42 -08:00
opts Updated GenericResource CLI 2017-11-06 21:47:26 +01:00
pkg idtools.MkdirAs*: error out if dir exists as file 2017-11-27 13:25:44 -08:00
plugin Merge pull request #35265 from cpuguy83/32609_defreference_voldriver_on_error 2017-11-07 09:47:07 -08:00
profiles Copy Inslice() to those parts that use it 2017-11-10 13:42:38 +08:00
project Fix GitHub spelling 2017-10-07 00:10:24 +08:00
reference Add gosimple linter 2017-09-12 12:09:59 -04:00
registry Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
reports
restartmanager
runconfig Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
vendor Update hcsshim to v0.6.7 for go1.9 support 2017-11-20 16:29:01 -08:00
volume Replace vol plugin integration test w/ unit test 2017-11-15 13:13:22 -05:00
.dockerignore
.gitignore Cleanup test output, and binaries. 2017-08-09 11:02:57 -04:00
.mailmap Update mailmap and authors 2017-10-04 14:44:24 +02:00
AUTHORS Update mailmap and authors 2017-10-04 14:44:24 +02:00
CHANGELOG.md Dropped hyphen in bind mount where appropriate 2017-08-19 21:25:07 +07:00
CONTRIBUTING.md First pass updating CONTRIBUTING 2017-11-03 11:54:55 +00:00
Dockerfile Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
Dockerfile.aarch64 Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
Dockerfile.armhf Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
Dockerfile.e2e Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
Dockerfile.ppc64le Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
Dockerfile.s390x Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
Dockerfile.simple Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
Dockerfile.windows Bump Go to 1.9.2 2017-11-21 20:57:02 +01:00
LICENSE
MAINTAINERS Update Misty's GitHub handle 2017-11-02 16:46:37 +01:00
Makefile Fix "make test" failing on missing "test-unit" 2017-11-20 19:12:25 +01:00
NOTICE
poule.yml
README.md Add "Lego set" back in README.md 2017-10-10 14:10:39 +00:00
ROADMAP.md Update the Roadmap 2017-10-11 17:33:50 +01:00
TESTING.md
vendor.conf Update hcsshim to v0.6.7 for go1.9 support 2017-11-20 16:29:01 -08: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.