mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update docs for addition of transfer manager
Closing the HTTP connection requesting a push or pull will cancel the push or pull. This behavior also applies to the CLI. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
572ce80230
commit
d92e7ad735
5 changed files with 15 additions and 6 deletions
|
@ -103,6 +103,9 @@ This section lists each version from latest to oldest. Each listing includes a
|
||||||
consistent with other date/time values returned by the API.
|
consistent with other date/time values returned by the API.
|
||||||
* `AuthConfig` now supports a `registrytoken` for token based authentication
|
* `AuthConfig` now supports a `registrytoken` for token based authentication
|
||||||
* `POST /containers/create` now has a 4M minimum value limit for `HostConfig.KernelMemory`
|
* `POST /containers/create` now has a 4M minimum value limit for `HostConfig.KernelMemory`
|
||||||
|
* Pushes initated with `POST /images/(name)/push` and pulls initiated with `POST /images/create`
|
||||||
|
will be cancelled if the HTTP connection making the API request is closed before
|
||||||
|
the push or pull completes.
|
||||||
|
|
||||||
### v1.21 API changes
|
### v1.21 API changes
|
||||||
|
|
||||||
|
|
|
@ -1530,6 +1530,7 @@ Query Parameters:
|
||||||
|
|
||||||
- **fromImage** – Name of the image to pull. The name may include a tag or
|
- **fromImage** – Name of the image to pull. The name may include a tag or
|
||||||
digest. This parameter may only be used when pulling an image.
|
digest. This parameter may only be used when pulling an image.
|
||||||
|
The pull is cancelled if the HTTP connection is closed.
|
||||||
- **fromSrc** – Source to import. The value may be a URL from which the image
|
- **fromSrc** – Source to import. The value may be a URL from which the image
|
||||||
can be retrieved or `-` to read the image from the request body.
|
can be retrieved or `-` to read the image from the request body.
|
||||||
This parameter may only be used when importing an image.
|
This parameter may only be used when importing an image.
|
||||||
|
@ -1755,6 +1756,8 @@ If you wish to push an image on to a private registry, that image must already h
|
||||||
into a repository which references that registry `hostname` and `port`. This repository name should
|
into a repository which references that registry `hostname` and `port`. This repository name should
|
||||||
then be used in the URL. This duplicates the command line's flow.
|
then be used in the URL. This duplicates the command line's flow.
|
||||||
|
|
||||||
|
The push is cancelled if the HTTP connection is closed.
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
POST /images/registry.acme.com:5000/test/push HTTP/1.1
|
POST /images/registry.acme.com:5000/test/push HTTP/1.1
|
||||||
|
|
|
@ -98,12 +98,9 @@ adding a `.dockerignore` file to that directory as well. For information on
|
||||||
creating one, see the [.dockerignore file](../builder.md#dockerignore-file).
|
creating one, see the [.dockerignore file](../builder.md#dockerignore-file).
|
||||||
|
|
||||||
If the Docker client loses connection to the daemon, the build is canceled.
|
If the Docker client loses connection to the daemon, the build is canceled.
|
||||||
This happens if you interrupt the Docker client with `ctrl-c` or if the Docker
|
This happens if you interrupt the Docker client with `CTRL-c` or if the Docker
|
||||||
client is killed for any reason.
|
client is killed for any reason. If the build initiated a pull which is still
|
||||||
|
running at the time the build is cancelled, the pull is cancelled as well.
|
||||||
> **Note:**
|
|
||||||
> Currently only the "run" phase of the build can be canceled until pull
|
|
||||||
> cancellation is implemented).
|
|
||||||
|
|
||||||
## Return code
|
## Return code
|
||||||
|
|
||||||
|
|
|
@ -49,3 +49,6 @@ use `docker pull`:
|
||||||
# manually specifies the path to the default Docker registry. This could
|
# manually specifies the path to the default Docker registry. This could
|
||||||
# be replaced with the path to a local registry to pull from another source.
|
# be replaced with the path to a local registry to pull from another source.
|
||||||
# sudo docker pull myhub.com:8080/test-image
|
# sudo docker pull myhub.com:8080/test-image
|
||||||
|
|
||||||
|
Killing the `docker pull` process, for example by pressing `CTRL-c` while it is
|
||||||
|
running in a terminal, will terminate the pull operation.
|
||||||
|
|
|
@ -19,3 +19,6 @@ parent = "smn_cli"
|
||||||
|
|
||||||
Use `docker push` to share your images to the [Docker Hub](https://hub.docker.com)
|
Use `docker push` to share your images to the [Docker Hub](https://hub.docker.com)
|
||||||
registry or to a self-hosted one.
|
registry or to a self-hosted one.
|
||||||
|
|
||||||
|
Killing the `docker push` process, for example by pressing `CTRL-c` while it is
|
||||||
|
running in a terminal, will terminate the push operation.
|
||||||
|
|
Loading…
Add table
Reference in a new issue