Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Go to file
Yong Tang 158b2a1875 Add `scope` filter in `/networks/<id>`
This fix tries to add a `scope` in the query of `/networks/<id>`
(`NetworkInspect`) so that in case of duplicate network names,
it is possible to locate the network ID based on the network
scope (`local`, 'swarm', or `global`).

Multiple networks might exist in different scopes, which is a legitimate case.
For example, a network name `foo` might exists locally and in swarm network.

However, before this PR it was not possible to query a network name `foo`
in a specific scope like swarm.

This fix fixes the issue by allowing a `scope` query in `/networks/<id>`.

Additional test cases have been added to unit tests and integration tests.

This fix is related to docker/cli#167, moby/moby#30897, moby/moby#33561, moby/moby#30242

This fix fixes docker/cli#167

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-06-12 09:54:25 -07:00
.github
api Add `scope` filter in `/networks/<id>` 2017-06-12 09:54:25 -07:00
builder builder: add a test for `ENV name` (without `=value`) 2017-06-07 05:23:26 +00:00
cli Remove unused functions 2017-06-03 15:19:10 -07:00
client Add `scope` filter in `/networks/<id>` 2017-06-12 09:54:25 -07:00
cmd/dockerd Merge pull request #33330 from coolljt0725/fix_sock_is_dir 2017-06-07 12:37:08 +09:00
container Remove unused functions from archive. 2017-06-07 11:44:33 -04:00
contrib Fix downloading image fails when build docker 2017-05-31 14:21:32 +08:00
daemon Merge pull request #33620 from cpuguy83/skip_size_on_mounted_local_volumes 2017-06-12 11:40:55 -04:00
distribution Remove unused functions from archive. 2017-06-07 11:44:33 -04:00
dockerversion
docs Add `scope` filter in `/networks/<id>` 2017-06-12 09:54:25 -07:00
experimental Fix list of experimental features 2017-05-03 23:29:11 +02:00
hack Bump API version 2017-06-09 14:58:01 +02:00
image Merge pull request #32293 from moypray/save_delete 2017-06-05 09:55:56 -04:00
integration-cli Add `scope` filter in `/networks/<id>` 2017-06-12 09:54:25 -07:00
layer Remove unused functions from archive. 2017-06-07 11:44:33 -04:00
libcontainerd Remove MkdirAllNewAs and update tests. 2017-06-07 11:44:34 -04:00
man Bump go to go1.8.3 2017-05-30 10:15:59 -04:00
migrate/v1
oci Update moby to runc and oci 1.0 runtime final rc 2017-05-05 13:45:45 -07:00
opts Remove more opts unused in docker/docker 2017-05-19 12:05:51 +02:00
pkg Merge pull request #33451 from naveed-jamil-tenpearls/pkg/signal/signal 2017-06-08 16:51:23 -07:00
plugin Partial refactor of UID/GID usage to use a unified struct. 2017-06-07 11:44:33 -04:00
profiles Revert "Block obsolete socket families in the default seccomp profile" 2017-05-09 14:26:00 +01:00
project Merge pull request #31461 from jpetazzo/announce-all-the-rcs 2017-04-13 10:11:57 -07:00
reference
registry Remove dead code: GetAuthConfig 2017-06-05 00:40:47 +00:00
reports Moby report 2017-06-05 2017-06-06 18:53:09 -07:00
restartmanager
runconfig Remove some more `opts` from runconfig (not used anymore) 2017-06-03 15:07:33 -07:00
vendor Vendoring libnetwork f4a15a0890383619ad797b3bd2481cc6f46a978d 2017-06-12 01:01:45 -07:00
volume Partial refactor of UID/GID usage to use a unified struct. 2017-06-07 11:44:33 -04:00
.dockerignore [EXPERIMENTAL] Integration Test on Swarm 2017-02-28 02:10:09 +00:00
.gitignore delete generated rpm "changelog" 2017-03-29 18:19:07 +02:00
.mailmap Update AUTHORS and mailmap 2017-05-12 16:45:49 +02:00
AUTHORS Update AUTHORS and mailmap 2017-05-12 16:45:49 +02:00
CHANGELOG.md bump to GA 2017-06-09 11:51:56 +02:00
CONTRIBUTING.md Update stackoverflow.com install counters 2017-04-09 09:19:06 +02:00
Dockerfile choose rpc code to determine status code 2017-06-06 10:08:50 +08:00
Dockerfile.aarch64 choose rpc code to determine status code 2017-06-06 10:08:50 +08:00
Dockerfile.armhf choose rpc code to determine status code 2017-06-06 10:08:50 +08:00
Dockerfile.ppc64le choose rpc code to determine status code 2017-06-06 10:08:50 +08:00
Dockerfile.s390x choose rpc code to determine status code 2017-06-06 10:08:50 +08:00
Dockerfile.simple Bump go to go1.8.3 2017-05-30 10:15:59 -04:00
Dockerfile.solaris
Dockerfile.windows Bump go to go1.8.3 2017-05-30 10:15:59 -04:00
LICENSE Update copyright dates 2017-02-24 19:41:59 +00:00
MAINTAINERS Use personal email address 2017-04-26 11:59:51 -07:00
Makefile integration-cli-on-swarm/README.md: add a note about Docker->Moby 2017-05-15 14:37:05 +00:00
NOTICE
README.md Clarify relationship between Moby and Docker. 2017-04-21 06:20:46 -05:00
ROADMAP.md
VENDORING.md
VERSION bump API and version 2017-04-11 11:21:55 -07:00
poule.yml Disable auto-assign for Anusha 2017-04-26 17:18:06 -07:00
vendor.conf Vendoring libnetwork f4a15a0890383619ad797b3bd2481cc6f46a978d 2017-06-12 01:01:45 -07:00

README.md

Docker users, see Moby and Docker to clarify the relationship between the projects

Docker maintainers and contributors, see Transitioning to Moby for more details

The Moby Project

Moby Project logo

Moby is an open-source project created by Docker to advance the software containerization movement. It provides a “Lego set” of dozens of components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts to experiment and exchange ideas.

Moby

Overview

At the core of Moby is a framework to assemble specialized container systems. It provides:

  • A library of containerized components for all vital aspects of a container system: OS, container runtime, orchestration, infrastructure management, networking, storage, security, build, image distribution, etc.
  • Tools to assemble the components into runnable artifacts for a variety of platforms and architectures: bare metal (both x86 and Arm); executables for Linux, Mac and Windows; VM images for popular cloud and virtualization providers.
  • A set of reference assemblies which can be used as-is, modified, or used as inspiration to create your own.

All Moby components are containers, so creating new components is as easy as building a new OCI-compatible container.

Principles

Moby is an open project guided by strong principles, but modular, flexible and without too strong an opinion on user experience, so it is open to the community to help set its direction. The guiding principles are:

  • 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 will provide secure defaults without compromising usability.
  • Container centric: Moby is built with containers, for running containers.

With Moby, you should be able to describe all the components of your distributed application, from the high-level configuration files down to the kernel you would like to use and build and deploy it easily.

Moby uses containerd as the default container runtime.

Audience

Moby is recommended for anyone who wants to assemble a container-based system. This includes:

  • Hackers who want to customize or patch their Docker build
  • System engineers or integrators building a container system
  • Infrastructure providers looking to adapt existing container systems to their environment
  • Container enthusiasts who want to experiment with the latest container tech
  • Open-source developers looking to test their project in a variety of different systems
  • Anyone curious about Docker internals and how its built

Moby is NOT recommended for:

  • Application developers looking for an easy way to run their applications in containers. We recommend Docker CE instead.
  • Enterprise IT and development teams looking for a ready-to-use, commercially supported container platform. We recommend Docker EE instead.
  • Anyone curious about containers and looking for an easy way to learn. We recommend the docker.com website instead.

Transitioning to Moby

Docker is transitioning all of its open source collaborations to the Moby project going forward. During the transition, all open source activity should continue as usual.

We are proposing the following list of changes:

  • splitting up the engine into more open components
  • removing the docker UI, SDK etc to keep them in the Docker org
  • clarifying that the project is not limited to the engine, but to the assembly of all the individual components of the Docker platform
  • open-source new tools & components which we currently use to assemble the Docker product, but could benefit the community
  • defining an open, community-centric governance inspired by the Fedora project (a very successful example of balancing the needs of the community with the constraints of the primary corporate sponsor)

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.