Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -14,8 +14,8 @@ FROM ${GOLANG_IMAGE}
|
| 14 | 14 |
ENV GOTOOLCHAIN=local |
| 15 | 15 |
|
| 16 | 16 |
# Compile and runtime deps |
| 17 |
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies |
|
| 18 |
-# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies |
|
| 17 |
+# https://github.com/moby/moby/blob/master/project/PACKAGERS.md#build-dependencies |
|
| 18 |
+# https://github.com/moby/moby/blob/master/project/PACKAGERS.md#runtime-dependencies |
|
| 19 | 19 |
RUN apt-get update && apt-get install -y --no-install-recommends \ |
| 20 | 20 |
build-essential \ |
| 21 | 21 |
curl \ |
| ... | ... |
@@ -1,8 +1,8 @@ |
| 1 | 1 |
The Moby Project |
| 2 | 2 |
================ |
| 3 | 3 |
|
| 4 |
-[](https://pkg.go.dev/github.com/docker/docker) |
|
| 5 |
-[](https://goreportcard.com/report/github.com/docker/docker) |
|
| 4 |
+[](https://pkg.go.dev/github.com/moby/moby/v2) |
|
| 5 |
+[](https://goreportcard.com/report/github.com/moby/moby/v2) |
|
| 6 | 6 |
[](https://scorecard.dev/viewer/?uri=github.com/moby/moby) |
| 7 | 7 |
|
| 8 | 8 |
|
| ... | ... |
@@ -113,5 +113,5 @@ We see gRPC as the natural communication layer between decoupled components. |
| 113 | 113 |
|
| 114 | 114 |
In addition to pushing out large components into other projects, much of the |
| 115 | 115 |
internal code structure, and in particular the |
| 116 |
-["Daemon"](https://godoc.org/github.com/docker/docker/daemon#Daemon) object, |
|
| 116 |
+["Daemon"](https://pkg.go.dev/github.com/moby/moby/v2/daemon#Daemon) object, |
|
| 117 | 117 |
should be split into smaller, more manageable, and more testable components. |
| ... | ... |
@@ -5,7 +5,7 @@ The Engine API is an HTTP API used by the command-line client to communicate wit |
| 5 | 5 |
It consists of various components in this repository: |
| 6 | 6 |
|
| 7 | 7 |
- `api/swagger.yaml` A Swagger definition of the API. |
| 8 |
-- `api/types/` Types shared by both the client and server, representing various objects, options, responses, etc. Most are written manually, but some are automatically generated from the Swagger definition. See [#27919](https://github.com/docker/docker/issues/27919) for progress on this. |
|
| 8 |
+- `api/types/` Types shared by both the client and server, representing various objects, options, responses, etc. Most are written manually, but some are automatically generated from the Swagger definition. See [#27919](https://github.com/moby/moby/issues/27919) for progress on this. |
|
| 9 | 9 |
- `client/` The Go client used by the command-line client. It can also be used by third-party Go programs. |
| 10 | 10 |
- `daemon/` The daemon, which serves the API. |
| 11 | 11 |
|
| ... | ... |
@@ -29,7 +29,7 @@ The file is split into two main sections: |
| 29 | 29 |
|
| 30 | 30 |
To make an edit, first look for the endpoint you want to edit under `paths`, then make the required edits. Endpoints may reference reusable objects with `$ref`, which can be found in the `definitions` section. |
| 31 | 31 |
|
| 32 |
-There is hopefully enough example material in the file for you to copy a similar pattern from elsewhere in the file (e.g. adding new fields or endpoints), but for the full reference, see the [Swagger specification](https://github.com/docker/docker/issues/27919). |
|
| 32 |
+There is hopefully enough example material in the file for you to copy a similar pattern from elsewhere in the file (e.g. adding new fields or endpoints), but for the full reference, see the [Swagger specification](https://github.com/moby/moby/issues/27919). |
|
| 33 | 33 |
|
| 34 | 34 |
`swagger.yaml` is validated by `hack/validate/swagger` to ensure it is a valid Swagger definition. This is useful when making edits to ensure you are doing the right thing. |
| 35 | 35 |
|
| ... | ... |
@@ -39,4 +39,4 @@ When you make edits to `swagger.yaml`, you may want to check the generated API d |
| 39 | 39 |
|
| 40 | 40 |
Run `make swagger-docs` and a preview will be running at `http://localhost:9000`. Some of the styling may be incorrect, but you'll be able to ensure that it is generating the correct documentation. |
| 41 | 41 |
|
| 42 |
-The production documentation is generated by vendoring `swagger.yaml` into [docker/docker.github.io](https://github.com/docker/docker.github.io). |
|
| 42 |
+The production documentation is generated by vendoring `swagger.yaml` into [docker/docs](https://github.com/docker/docs). |
| ... | ... |
@@ -21,7 +21,7 @@ func main() {
|
| 21 | 21 |
|
| 22 | 22 |
// Ignore SIGPIPE events. These are generated by systemd when journald is restarted while |
| 23 | 23 |
// the docker daemon is not restarted and also running under systemd. |
| 24 |
- // Fixes https://github.com/docker/docker/issues/19728 |
|
| 24 |
+ // Fixes https://github.com/moby/moby/issues/19728 |
|
| 25 | 25 |
signal.Ignore(syscall.SIGPIPE) |
| 26 | 26 |
|
| 27 | 27 |
// Set terminal emulation based on platform as required. |
| ... | ... |
@@ -60,7 +60,7 @@ start() {
|
| 60 | 60 |
pid=$! |
| 61 | 61 |
touch $lockfile |
| 62 | 62 |
# wait up to 10 seconds for the pidfile to exist. see |
| 63 |
- # https://github.com/docker/docker/issues/5359 |
|
| 63 |
+ # https://github.com/moby/moby/issues/5359 |
|
| 64 | 64 |
tries=0 |
| 65 | 65 |
while [ ! -f $pidfile -a $tries -lt 10 ]; do |
| 66 | 66 |
sleep 1 |
| ... | ... |
@@ -218,10 +218,10 @@ with matching paths, and orders the list of file sums accordingly [3]. |
| 218 | 218 |
|
| 219 | 219 |
## Footnotes |
| 220 | 220 |
|
| 221 |
-* [0] Versioning https://github.com/docker/docker/commit/747f89cd327db9d50251b17797c4d825162226d0 |
|
| 222 |
-* [1] Alternate ciphers https://github.com/docker/docker/commit/4e9925d780665149b8bc940d5ba242ada1973c4e |
|
| 221 |
+* [0] Versioning https://github.com/moby/moby/commit/747f89cd327db9d50251b17797c4d825162226d0 |
|
| 222 |
+* [1] Alternate ciphers https://github.com/moby/moby/commit/4e9925d780665149b8bc940d5ba242ada1973c4e |
|
| 223 | 223 |
* [2] Tar http://en.wikipedia.org/wiki/Tar_%28computing%29 |
| 224 |
-* [3] Name collision https://github.com/docker/docker/commit/c5e6362c53cbbc09ddbabd5a7323e04438b57d31 |
|
| 224 |
+* [3] Name collision https://github.com/moby/moby/commit/c5e6362c53cbbc09ddbabd5a7323e04438b57d31 |
|
| 225 | 225 |
|
| 226 | 226 |
## Acknowledgments |
| 227 | 227 |
|
| ... | ... |
@@ -525,7 +525,7 @@ func getConflictFreeConfiguration(configFile string, flags *pflag.FlagSet) (*Con |
| 525 | 525 |
|
| 526 | 526 |
// Override flag values to make sure the values set in the config file with nullable values, like `false`, |
| 527 | 527 |
// are not overridden by default truthy values from the flags that were not explicitly set. |
| 528 |
- // See https://github.com/docker/docker/issues/20289 for an example. |
|
| 528 |
+ // See https://github.com/moby/moby/issues/20289 for an example. |
|
| 529 | 529 |
// |
| 530 | 530 |
// TODO: Rewrite configuration logic to avoid same issue with other nullable values, like numbers. |
| 531 | 531 |
namedOptions := make(map[string]interface{})
|
| ... | ... |
@@ -607,7 +607,7 @@ func (container *Container) StopTimeout() int {
|
| 607 | 607 |
// The non-recommended host configuration in the start api can |
| 608 | 608 |
// make these fields nil again, this corrects that issue until |
| 609 | 609 |
// we remove that behavior for good. |
| 610 |
-// See https://github.com/docker/docker/pull/17779 |
|
| 610 |
+// See https://github.com/moby/moby/pull/17779 |
|
| 611 | 611 |
// for a more detailed explanation on why we don't want that. |
| 612 | 612 |
func (container *Container) InitDNSHostConfig() {
|
| 613 | 613 |
container.Lock() |
| ... | ... |
@@ -808,7 +808,7 @@ func writeLayer(layerData io.Reader, home string, id string, parentLayerPaths .. |
| 808 | 808 |
defer func() {
|
| 809 | 809 |
if err := winio.DisableProcessPrivileges([]string{winio.SeSecurityPrivilege, winio.SeBackupPrivilege, winio.SeRestorePrivilege}); err != nil {
|
| 810 | 810 |
// This should never happen, but just in case when in debugging mode. |
| 811 |
- // See https://github.com/docker/docker/pull/28002#discussion_r86259241 for rationale. |
|
| 811 |
+ // See https://github.com/moby/moby/pull/28002#discussion_r86259241 for rationale. |
|
| 812 | 812 |
panic("Failed to disabled process privileges while in non re-exec mode")
|
| 813 | 813 |
} |
| 814 | 814 |
}() |
| ... | ... |
@@ -544,7 +544,7 @@ func (p *puller) pullSchema2Layers(ctx context.Context, target distribution.Desc |
| 544 | 544 |
layerStoreOS = platform.OS |
| 545 | 545 |
} |
| 546 | 546 |
|
| 547 |
- // https://github.com/docker/docker/issues/24766 - Err on the side of caution, |
|
| 547 |
+ // https://github.com/moby/moby/issues/24766 - Err on the side of caution, |
|
| 548 | 548 |
// explicitly blocking images intended for linux from the Windows daemon. On |
| 549 | 549 |
// Windows, we do this before the attempt to download, effectively serialising |
| 550 | 550 |
// the download slightly slowing it down. We have to do it this way, as |
| ... | ... |
@@ -40,8 +40,8 @@ var ( |
| 40 | 40 |
schema2.MediaTypeImageConfig, |
| 41 | 41 |
ocispec.MediaTypeImageConfig, |
| 42 | 42 |
// Handle unexpected values from https://github.com/docker/distribution/issues/1621 |
| 43 |
- // (see also https://github.com/docker/docker/issues/22378, |
|
| 44 |
- // https://github.com/docker/docker/issues/30083) |
|
| 43 |
+ // (see also https://github.com/moby/moby/issues/22378, |
|
| 44 |
+ // https://github.com/moby/moby/issues/30083) |
|
| 45 | 45 |
"application/octet-stream", |
| 46 | 46 |
"application/json", |
| 47 | 47 |
"text/html", |
| 48 | 48 |
deleted file mode 100644 |
| ... | ... |
@@ -1,19 +0,0 @@ |
| 1 |
-# libnetwork - networking for containers |
|
| 2 |
- |
|
| 3 |
-Libnetwork provides a native Go implementation for connecting containers |
|
| 4 |
- |
|
| 5 |
-The goal of libnetwork is to deliver a robust Container Network Model that provides a consistent programming interface and the required network abstractions for applications. |
|
| 6 |
- |
|
| 7 |
-#### Design |
|
| 8 |
-Please refer to the [design](docs/design.md) for more information. |
|
| 9 |
- |
|
| 10 |
-#### Using libnetwork |
|
| 11 |
- |
|
| 12 |
-There are many networking solutions available to suit a broad range of use-cases. libnetwork uses a driver / plugin model to support all of these solutions while abstracting the complexity of the driver implementations by exposing a simple and consistent Network Model to users. |
|
| 13 |
- |
|
| 14 |
-## Contributing |
|
| 15 |
- |
|
| 16 |
-Want to hack on libnetwork? [Docker's contributions guidelines](https://github.com/docker/docker/blob/master/CONTRIBUTING.md) apply. |
|
| 17 |
- |
|
| 18 |
-## Copyright and license |
|
| 19 |
-Code and documentation copyright 2015 Docker, inc. Code released under the Apache 2.0 license. Docs released under Creative commons. |
| ... | ... |
@@ -168,7 +168,7 @@ func (daemon *Daemon) clusterNetworksPrune(ctx context.Context, pruneFilters fil |
| 168 | 168 |
if !matchLabels(pruneFilters, nw.Labels) {
|
| 169 | 169 |
continue |
| 170 | 170 |
} |
| 171 |
- // https://github.com/docker/docker/issues/24186 |
|
| 171 |
+ // https://github.com/moby/moby/issues/24186 |
|
| 172 | 172 |
// `docker network inspect` unfortunately displays ONLY those containers that are local to that node. |
| 173 | 173 |
// So we try to remove it anyway and check the error |
| 174 | 174 |
err = cluster.RemoveNetwork(nw.ID) |
| ... | ... |
@@ -20,7 +20,7 @@ import ( |
| 20 | 20 |
|
| 21 | 21 |
// NOTE: \\s does not detect unicode whitespaces. |
| 22 | 22 |
// So we use fieldsASCII instead of strings.Fields in parsePSOutput. |
| 23 |
-// See https://github.com/docker/docker/pull/24358 |
|
| 23 |
+// See https://github.com/moby/moby/pull/24358 |
|
| 24 | 24 |
var psArgsRegexp = lazyregexp.New("\\s+([^\\s]*)=\\s*(PID[^\\s]*)")
|
| 25 | 25 |
|
| 26 | 26 |
func validatePSArgs(psArgs string) error {
|
| ... | ... |
@@ -1,10 +1,10 @@ |
| 1 | 1 |
package daemon |
| 2 | 2 |
|
| 3 | 3 |
// ContainerCreateWorkdir creates the working directory. This solves the |
| 4 |
-// issue arising from https://github.com/docker/docker/issues/27545, |
|
| 5 |
-// which was initially fixed by https://github.com/docker/docker/pull/27884. But that fix |
|
| 4 |
+// issue arising from https://github.com/moby/moby/issues/27545, |
|
| 5 |
+// which was initially fixed by https://github.com/moby/moby/pull/27884. But that fix |
|
| 6 | 6 |
// was too expensive in terms of performance on Windows. Instead, |
| 7 |
-// https://github.com/docker/docker/pull/28514 introduces this new functionality |
|
| 7 |
+// https://github.com/moby/moby/pull/28514 introduces this new functionality |
|
| 8 | 8 |
// where the builder calls into the backend here to create the working directory. |
| 9 | 9 |
func (daemon *Daemon) ContainerCreateWorkdir(cID string) error {
|
| 10 | 10 |
container, err := daemon.GetContainer(cID) |
| ... | ... |
@@ -6,7 +6,7 @@ set -e |
| 6 | 6 |
# |
| 7 | 7 |
# Requirements: |
| 8 | 8 |
# - The current directory should be a checkout of the docker source code |
| 9 |
-# (https://github.com/docker/docker). Whatever version is checked out |
|
| 9 |
+# (https://github.com/moby/moby). Whatever version is checked out |
|
| 10 | 10 |
# will be built. |
| 11 | 11 |
# - The VERSION file, at the root of the repository, should exist, and |
| 12 | 12 |
# will be used as Docker binary version and package version. |
| ... | ... |
@@ -20,7 +20,7 @@ if ! command -v "$TEST_CLIENT_BINARY" &> /dev/null; then |
| 20 | 20 |
fi |
| 21 | 21 |
|
| 22 | 22 |
# This is a temporary hack for split-binary mode. It can be removed once |
| 23 |
-# https://github.com/docker/docker/pull/22134 is merged into docker master |
|
| 23 |
+# https://github.com/moby/moby/pull/22134 is merged into docker master |
|
| 24 | 24 |
if [ "$(go env GOOS)" = 'windows' ]; then |
| 25 | 25 |
return |
| 26 | 26 |
fi |
| ... | ... |
@@ -46,8 +46,8 @@ else |
| 46 | 46 |
echo |
| 47 | 47 |
echo 'Please amend each commit to include a properly formatted DCO marker.' |
| 48 | 48 |
echo |
| 49 |
- echo 'Visit the following URL for information about the Docker DCO:' |
|
| 50 |
- echo ' https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work' |
|
| 49 |
+ echo 'Visit the following URL for information about the DCO:' |
|
| 50 |
+ echo ' https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work' |
|
| 51 | 51 |
echo |
| 52 | 52 |
} >&2 |
| 53 | 53 |
false |
| ... | ... |
@@ -1045,7 +1045,7 @@ func (s *DockerAPISuite) TestContainerAPIDeleteRemoveVolume(c *testing.T) {
|
| 1045 | 1045 |
assert.Assert(c, os.IsNotExist(err), "expected to get ErrNotExist error, got %v", err) |
| 1046 | 1046 |
} |
| 1047 | 1047 |
|
| 1048 |
-// Regression test for https://github.com/docker/docker/issues/6231 |
|
| 1048 |
+// Regression test for https://github.com/moby/moby/issues/6231 |
|
| 1049 | 1049 |
func (s *DockerAPISuite) TestContainerAPIChunkedEncoding(c *testing.T) {
|
| 1050 | 1050 |
config := map[string]interface{}{
|
| 1051 | 1051 |
"Image": "busybox", |
| ... | ... |
@@ -447,7 +447,7 @@ ADD %s/file /` |
| 447 | 447 |
} |
| 448 | 448 |
} |
| 449 | 449 |
|
| 450 |
-// Regression for https://github.com/docker/docker/pull/27805 |
|
| 450 |
+// Regression for https://github.com/moby/moby/pull/27805 |
|
| 451 | 451 |
// Makes sure that we don't use the cache if the contents of |
| 452 | 452 |
// a file in a subfolder of the context is modified and we re-build. |
| 453 | 453 |
func (s *DockerCLIBuildSuite) TestBuildModifyFileInFolder(c *testing.T) {
|
| ... | ... |
@@ -5972,7 +5972,7 @@ func (s *DockerCLIBuildSuite) TestBuildIntermediateTarget(c *testing.T) {
|
| 5972 | 5972 |
|
| 5973 | 5973 |
// TestBuildOpaqueDirectory tests that a build succeeds which |
| 5974 | 5974 |
// creates opaque directories. |
| 5975 |
-// See https://github.com/docker/docker/issues/25244 |
|
| 5975 |
+// See https://github.com/moby/moby/issues/25244 |
|
| 5976 | 5976 |
func (s *DockerCLIBuildSuite) TestBuildOpaqueDirectory(c *testing.T) {
|
| 5977 | 5977 |
testRequires(c, DaemonIsLinux) |
| 5978 | 5978 |
dockerFile := ` |
| ... | ... |
@@ -675,7 +675,7 @@ func (s *DockerDaemonSuite) TestHTTPSInfo(c *testing.T) {
|
| 675 | 675 |
} |
| 676 | 676 |
|
| 677 | 677 |
// TestHTTPSRun connects via two-way authenticated HTTPS to the create, attach, start, and wait endpoints. |
| 678 |
-// https://github.com/docker/docker/issues/19280 |
|
| 678 |
+// https://github.com/moby/moby/issues/19280 |
|
| 679 | 679 |
func (s *DockerDaemonSuite) TestHTTPSRun(c *testing.T) {
|
| 680 | 680 |
const ( |
| 681 | 681 |
testDaemonHTTPSAddr = "tcp://localhost:4271" |
| ... | ... |
@@ -1834,8 +1834,8 @@ func (s *DockerDaemonSuite) TestDaemonRestartSaveContainerExitCode(c *testing.T) |
| 1834 | 1834 |
// process itself is PID1, the container does not fail on _startup_ (i.e., `docker-init` starting), |
| 1835 | 1835 |
// but directly after. The exit code of the container is still 127, but the Error Message is not |
| 1836 | 1836 |
// captured, so `.State.Error` is empty. |
| 1837 |
- // See the discussion on https://github.com/docker/docker/pull/30227#issuecomment-274161426, |
|
| 1838 |
- // and https://github.com/docker/docker/pull/26061#r78054578 for more information. |
|
| 1837 |
+ // See the discussion on https://github.com/moby/moby/pull/30227#issuecomment-274161426, |
|
| 1838 |
+ // and https://github.com/moby/moby/pull/26061#r78054578 for more information. |
|
| 1839 | 1839 |
_, err := s.d.Cmd("run", "--name", containerName, "--init=false", "busybox", "toto")
|
| 1840 | 1840 |
assert.ErrorContains(c, err, "") |
| 1841 | 1841 |
|
| ... | ... |
@@ -522,7 +522,7 @@ func (s *DockerCLIExecSuite) TestExecStartFails(c *testing.T) {
|
| 522 | 522 |
assert.Assert(c, is.Contains(out, expectedMsg)) |
| 523 | 523 |
} |
| 524 | 524 |
|
| 525 |
-// Fix regression in https://github.com/docker/docker/pull/26461#issuecomment-250287297 |
|
| 525 |
+// Fix regression in https://github.com/moby/moby/pull/26461#issuecomment-250287297 |
|
| 526 | 526 |
func (s *DockerCLIExecSuite) TestExecWindowsPathNotWiped(c *testing.T) {
|
| 527 | 527 |
testRequires(c, DaemonIsWindows) |
| 528 | 528 |
out := cli.DockerCmd(c, "run", "-d", "--name", "testing", minimalBaseImage(), "powershell", "start-sleep", "60").Stdout() |
| ... | ... |
@@ -1760,7 +1760,7 @@ func (s *DockerNetworkSuite) TestDockerNetworkDisconnectFromBridge(c *testing.T) |
| 1760 | 1760 |
assert.NilError(c, err) |
| 1761 | 1761 |
} |
| 1762 | 1762 |
|
| 1763 |
-// TestConntrackFlowsLeak covers the failure scenario of ticket: https://github.com/docker/docker/issues/8795 |
|
| 1763 |
+// TestConntrackFlowsLeak covers the failure scenario of ticket: https://github.com/moby/moby/issues/8795 |
|
| 1764 | 1764 |
// Validates that conntrack is correctly cleaned once a container is destroyed |
| 1765 | 1765 |
func (s *DockerNetworkSuite) TestConntrackFlowsLeak(c *testing.T) {
|
| 1766 | 1766 |
testRequires(c, IsAmd64, DaemonIsLinux, Network, testEnv.IsLocalDaemon) |
| ... | ... |
@@ -331,7 +331,7 @@ func (ps *DockerPluginSuite) TestPluginInspect(c *testing.T) {
|
| 331 | 331 |
assert.ErrorContains(c, err, "") |
| 332 | 332 |
} |
| 333 | 333 |
|
| 334 |
-// Test case for https://github.com/docker/docker/pull/29186#discussion_r91277345 |
|
| 334 |
+// Test case for https://github.com/moby/moby/pull/29186#discussion_r91277345 |
|
| 335 | 335 |
func (s *DockerCLIPluginsSuite) TestPluginInspectOnWindows(c *testing.T) {
|
| 336 | 336 |
// This test should work on Windows only |
| 337 | 337 |
testRequires(c, DaemonIsWindows) |
| ... | ... |
@@ -203,7 +203,7 @@ func (s *DockerHubPullSuite) TestPullClientDisconnect(c *testing.T) {
|
| 203 | 203 |
assert.ErrorContains(c, err, "", "image was pulled after client disconnected") |
| 204 | 204 |
} |
| 205 | 205 |
|
| 206 |
-// Regression test for https://github.com/docker/docker/issues/26429 |
|
| 206 |
+// Regression test for https://github.com/moby/moby/issues/26429 |
|
| 207 | 207 |
func (s *DockerCLIPullSuite) TestPullLinuxImageFailsOnWindows(c *testing.T) {
|
| 208 | 208 |
testRequires(c, DaemonIsWindows, Network) |
| 209 | 209 |
_, _, err := dockerCmdWithError("pull", "ubuntu")
|
| ... | ... |
@@ -211,7 +211,7 @@ func (s *DockerCLIPullSuite) TestPullLinuxImageFailsOnWindows(c *testing.T) {
|
| 211 | 211 |
assert.ErrorContains(c, err, "no matching manifest for windows") |
| 212 | 212 |
} |
| 213 | 213 |
|
| 214 |
-// Regression test for https://github.com/docker/docker/issues/28892 |
|
| 214 |
+// Regression test for https://github.com/moby/moby/issues/28892 |
|
| 215 | 215 |
func (s *DockerCLIPullSuite) TestPullWindowsImageFailsOnLinux(c *testing.T) {
|
| 216 | 216 |
testRequires(c, DaemonIsLinux, Network) |
| 217 | 217 |
_, _, err := dockerCmdWithError("pull", "mcr.microsoft.com/windows/servercore:ltsc2022")
|
| ... | ... |
@@ -151,7 +151,7 @@ func (s *DockerCLIRmiSuite) TestRmiImgIDForce(c *testing.T) {
|
| 151 | 151 |
} |
| 152 | 152 |
} |
| 153 | 153 |
|
| 154 |
-// See https://github.com/docker/docker/issues/14116 |
|
| 154 |
+// See https://github.com/moby/moby/issues/14116 |
|
| 155 | 155 |
func (s *DockerCLIRmiSuite) TestRmiImageIDForceWithRunningContainersAndMultipleTags(c *testing.T) {
|
| 156 | 156 |
dockerfile := "FROM busybox\nRUN echo test 14116\n" |
| 157 | 157 |
buildImageSuccessfully(c, "test-14116", build.WithDockerfile(dockerfile)) |
| ... | ... |
@@ -546,7 +546,7 @@ func (s *DockerCLIRunSuite) TestRunNoDupVolumes(c *testing.T) {
|
| 546 | 546 |
} |
| 547 | 547 |
} |
| 548 | 548 |
|
| 549 |
- // Test for https://github.com/docker/docker/issues/22093 |
|
| 549 |
+ // Test for https://github.com/moby/moby/issues/22093 |
|
| 550 | 550 |
volumename1 := "test1" |
| 551 | 551 |
volumename2 := "test2" |
| 552 | 552 |
volume1 := volumename1 + someplace |
| ... | ... |
@@ -1956,7 +1956,7 @@ func (s *DockerCLIRunSuite) TestRunPortInUse(c *testing.T) {
|
| 1956 | 1956 |
} |
| 1957 | 1957 |
} |
| 1958 | 1958 |
|
| 1959 |
-// https://github.com/docker/docker/issues/12148 |
|
| 1959 |
+// https://github.com/moby/moby/issues/12148 |
|
| 1960 | 1960 |
func (s *DockerCLIRunSuite) TestRunAllocatePortInReservedRange(c *testing.T) {
|
| 1961 | 1961 |
// TODO Windows. -P is not yet supported |
| 1962 | 1962 |
testRequires(c, DaemonIsLinux) |
| ... | ... |
@@ -2021,7 +2021,7 @@ func (s *DockerCLIRunSuite) TestRunMountOrdering(c *testing.T) {
|
| 2021 | 2021 |
"ls "+prefix+"/tmp/touch-me && ls "+prefix+"/tmp/foo/touch-me && ls "+prefix+"/tmp/tmp2/touch-me && ls "+prefix+"/tmp/tmp2/foo/touch-me") |
| 2022 | 2022 |
} |
| 2023 | 2023 |
|
| 2024 |
-// Regression test for https://github.com/docker/docker/issues/8259 |
|
| 2024 |
+// Regression test for https://github.com/moby/moby/issues/8259 |
|
| 2025 | 2025 |
func (s *DockerCLIRunSuite) TestRunReuseBindVolumeThatIsSymlink(c *testing.T) {
|
| 2026 | 2026 |
// Not applicable on Windows as Windows does not support volumes |
| 2027 | 2027 |
testRequires(c, testEnv.IsLocalDaemon, DaemonIsLinux, NotUserNamespace) |
| ... | ... |
@@ -2885,7 +2885,7 @@ func (s *DockerCLIRunSuite) TestRunCapAddCHOWN(c *testing.T) {
|
| 2885 | 2885 |
} |
| 2886 | 2886 |
} |
| 2887 | 2887 |
|
| 2888 |
-// https://github.com/docker/docker/pull/14498 |
|
| 2888 |
+// https://github.com/moby/moby/pull/14498 |
|
| 2889 | 2889 |
func (s *DockerCLIRunSuite) TestVolumeFromMixedRWOptions(c *testing.T) {
|
| 2890 | 2890 |
prefix, slash := getPrefixAndSlashFromDaemonPlatform() |
| 2891 | 2891 |
|
| ... | ... |
@@ -25,7 +25,7 @@ func (s *DockerCLIStartSuite) OnTimeout(t *testing.T) {
|
| 25 | 25 |
s.ds.OnTimeout(t) |
| 26 | 26 |
} |
| 27 | 27 |
|
| 28 |
-// Regression test for https://github.com/docker/docker/issues/7843 |
|
| 28 |
+// Regression test for https://github.com/moby/moby/issues/7843 |
|
| 29 | 29 |
func (s *DockerCLIStartSuite) TestStartAttachReturnsOnError(c *testing.T) {
|
| 30 | 30 |
// Windows does not support link |
| 31 | 31 |
testRequires(c, DaemonIsLinux) |
| ... | ... |
@@ -571,7 +571,7 @@ func (s *DockerSwarmSuite) TestSwarmCreateServiceWithNoIngressNetwork(c *testing |
| 571 | 571 |
} |
| 572 | 572 |
|
| 573 | 573 |
// Test case for #24108, also the case from: |
| 574 |
-// https://github.com/docker/docker/pull/24620#issuecomment-233715656 |
|
| 574 |
+// https://github.com/moby/moby/pull/24620#issuecomment-233715656 |
|
| 575 | 575 |
func (s *DockerSwarmSuite) TestSwarmTaskListFilter(c *testing.T) {
|
| 576 | 576 |
ctx := testutil.GetContext(c) |
| 577 | 577 |
d := s.AddDaemon(ctx, c, true, true) |
| ... | ... |
@@ -1599,7 +1599,7 @@ func (s *DockerSwarmSuite) TestSwarmNetworkCreateIssue27866(c *testing.T) {
|
| 1599 | 1599 |
assert.NilError(c, err, "out: %v", out) |
| 1600 | 1600 |
} |
| 1601 | 1601 |
|
| 1602 |
-// Test case for https://github.com/docker/docker/pull/27938#issuecomment-265768303 |
|
| 1602 |
+// Test case for https://github.com/moby/moby/pull/27938#issuecomment-265768303 |
|
| 1603 | 1603 |
// This test creates two networks with the same name sequentially, with various drivers. |
| 1604 | 1604 |
// Since the operations in this test are done sequentially, the 2nd call should fail with |
| 1605 | 1605 |
// "network with name FOO already exists". |
| ... | ... |
@@ -409,7 +409,7 @@ func (s *DockerCLIVolumeSuite) TestVolumeCLIRmForce(c *testing.T) {
|
| 409 | 409 |
} |
| 410 | 410 |
|
| 411 | 411 |
// TestVolumeCLIRmForceInUse verifies that repeated `docker volume rm -f` calls does not remove a volume |
| 412 |
-// if it is in use. Test case for https://github.com/docker/docker/issues/31446 |
|
| 412 |
+// if it is in use. Test case for https://github.com/moby/moby/issues/31446 |
|
| 413 | 413 |
func (s *DockerCLIVolumeSuite) TestVolumeCLIRmForceInUse(c *testing.T) {
|
| 414 | 414 |
const name = "testvolume" |
| 415 | 415 |
id := cli.DockerCmd(c, "volume", "create", name).Stdout() |
| ... | ... |
@@ -10,8 +10,8 @@ import ( |
| 10 | 10 |
|
| 11 | 11 |
// EmptyFS builds an image with an empty rootfs. |
| 12 | 12 |
// Layout: Legacy Docker Archive |
| 13 |
-// See https://github.com/docker/docker/pull/5262 |
|
| 14 |
-// and also https://github.com/docker/docker/issues/4242 |
|
| 13 |
+// See https://github.com/moby/moby/pull/5262 |
|
| 14 |
+// and also https://github.com/moby/moby/issues/4242 |
|
| 15 | 15 |
func EmptyFS(dir string) (*ocispec.Index, error) {
|
| 16 | 16 |
if err := os.WriteFile(filepath.Join(dir, "manifest.json"), []byte(`[{"Config":"11f64303f0f7ffdc71f001788132bca5346831939a956e3e975c93267d89a16d.json","RepoTags":["emptyfs:latest"],"Layers":["511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158/layer.tar"]}]`), 0o644); err != nil {
|
| 17 | 17 |
return nil, err |
| ... | ... |
@@ -65,7 +65,7 @@ func (m *Middleware) WrapHandler(handler func(ctx context.Context, w http.Respon |
| 65 | 65 |
// Default authorization using existing TLS connection credentials |
| 66 | 66 |
// FIXME: Non trivial authorization mechanisms (such as advanced certificate validations, kerberos support |
| 67 | 67 |
// and ldap) will be extracted using AuthN feature, which is tracked under: |
| 68 |
- // https://github.com/docker/docker/pull/20883 |
|
| 68 |
+ // https://github.com/moby/moby/pull/20883 |
|
| 69 | 69 |
if r.TLS != nil && len(r.TLS.PeerCertificates) > 0 {
|
| 70 | 70 |
user = r.TLS.PeerCertificates[0].Subject.CommonName |
| 71 | 71 |
userAuthNMethod = "TLS" |
| ... | ... |
@@ -50,7 +50,7 @@ etc.) allows to get early feedback on the design before getting into the |
| 50 | 50 |
implementation, which usually reduces the time needed to discuss a changeset. |
| 51 | 51 |
- If the code is commented, fully tested and by extension follows every single |
| 52 | 52 |
rules defined by the [CONTRIBUTING guide]( |
| 53 |
-https://github.com/docker/docker/blob/master/CONTRIBUTING.md), this will help |
|
| 53 |
+https://github.com/moby/moby/blob/master/CONTRIBUTING.md), this will help |
|
| 54 | 54 |
the maintainers by speeding up the review. |
| 55 | 55 |
|
| 56 | 56 |
## The release |
| ... | ... |
@@ -128,9 +128,9 @@ completeness, validity, and breadth of coverage across all existing and new docu |
| 128 | 128 |
They should ask for any editorial change that makes the documentation more consistent and easier to |
| 129 | 129 |
understand. |
| 130 | 130 |
|
| 131 |
-The docker/docker repository only contains _reference documentation_, all |
|
| 131 |
+The moby/moby repository only contains _reference documentation_, all |
|
| 132 | 132 |
"narrative" documentation is kept in a [unified documentation |
| 133 |
-repository](https://github.com/docker/docker.github.io). Reviewers must |
|
| 133 |
+repository](https://github.com/docker/docs). Reviewers must |
|
| 134 | 134 |
therefore verify which parts of the documentation need to be updated. Any |
| 135 | 135 |
contribution that may require changing the narrative should get the |
| 136 | 136 |
`impact/documentation` label: this is the signal for documentation maintainers |
| ... | ... |
@@ -5,7 +5,7 @@ The Engine API is an HTTP API used by the command-line client to communicate wit |
| 5 | 5 |
It consists of various components in this repository: |
| 6 | 6 |
|
| 7 | 7 |
- `api/swagger.yaml` A Swagger definition of the API. |
| 8 |
-- `api/types/` Types shared by both the client and server, representing various objects, options, responses, etc. Most are written manually, but some are automatically generated from the Swagger definition. See [#27919](https://github.com/docker/docker/issues/27919) for progress on this. |
|
| 8 |
+- `api/types/` Types shared by both the client and server, representing various objects, options, responses, etc. Most are written manually, but some are automatically generated from the Swagger definition. See [#27919](https://github.com/moby/moby/issues/27919) for progress on this. |
|
| 9 | 9 |
- `client/` The Go client used by the command-line client. It can also be used by third-party Go programs. |
| 10 | 10 |
- `daemon/` The daemon, which serves the API. |
| 11 | 11 |
|
| ... | ... |
@@ -29,7 +29,7 @@ The file is split into two main sections: |
| 29 | 29 |
|
| 30 | 30 |
To make an edit, first look for the endpoint you want to edit under `paths`, then make the required edits. Endpoints may reference reusable objects with `$ref`, which can be found in the `definitions` section. |
| 31 | 31 |
|
| 32 |
-There is hopefully enough example material in the file for you to copy a similar pattern from elsewhere in the file (e.g. adding new fields or endpoints), but for the full reference, see the [Swagger specification](https://github.com/docker/docker/issues/27919). |
|
| 32 |
+There is hopefully enough example material in the file for you to copy a similar pattern from elsewhere in the file (e.g. adding new fields or endpoints), but for the full reference, see the [Swagger specification](https://github.com/moby/moby/issues/27919). |
|
| 33 | 33 |
|
| 34 | 34 |
`swagger.yaml` is validated by `hack/validate/swagger` to ensure it is a valid Swagger definition. This is useful when making edits to ensure you are doing the right thing. |
| 35 | 35 |
|
| ... | ... |
@@ -39,4 +39,4 @@ When you make edits to `swagger.yaml`, you may want to check the generated API d |
| 39 | 39 |
|
| 40 | 40 |
Run `make swagger-docs` and a preview will be running at `http://localhost:9000`. Some of the styling may be incorrect, but you'll be able to ensure that it is generating the correct documentation. |
| 41 | 41 |
|
| 42 |
-The production documentation is generated by vendoring `swagger.yaml` into [docker/docker.github.io](https://github.com/docker/docker.github.io). |
|
| 42 |
+The production documentation is generated by vendoring `swagger.yaml` into [docker/docs](https://github.com/docker/docs). |