| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
The configDir (and "DOCKER_CONFIG" environment variable) is now only used
for the default location for TLS certificates to secure the daemon API.
It is a leftover from when the "docker" and "dockerd" CLI shared the same
binary, allowing the DOCKER_CONFIG environment variable to set the location
for certificates to be used by both.
This patch merges it into cmd/dockerd, which is where it was used.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
|
|
|
|
|
| |
The cli package is a leftover from when the "docker" and "dockerd" cli
were both maintained in this repository; the only consumer of this is
now the dockerd CLI, so we can move this code (it should not be imported
by anyone).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
| |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
| |
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
|
|
|
|
| |
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
|
|
|
|
| |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
|
|
|
|
|
|
|
| |
Please refer to `docs/rootless.md`.
TLDR:
* Make sure `/etc/subuid` and `/etc/subgid` contain the entry for you
* `dockerd-rootless.sh --experimental`
* `docker -H unix://$XDG_RUNTIME_DIR/docker.sock run ...`
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
|
|
|
|
|
|
| |
remove unnescessary import aliases, brackets, and so on.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
|
|
|
| |
dockerd has no subcommands, so the help command
is not used.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
| |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
|
|
|
|
| |
> HasAvailableFlags checks if the command contains any flags (local
> plus persistent from the entire structure) which are not hidden or
> deprecated.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|
|
|
| |
Signed-off-by: Daniel Nephin <dnephin@docker.com>
|
|
|
|
|
|
| |
Fixes case sensitivity issue
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
|
|
|
|
| |
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
|
|
|
|
|
|
|
|
|
|
|
| |
- Moving the `common*.go` files in `cmd/dockerd` directly (it's the
only place it's getting used)
- Rename `cli/flags` to `cli/config` because it's the only thing left
in that package 👼
Now, `integration-cli` does *truly* not depend on `cobra` stuff.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
|
|
|
|
|
|
|
| |
This makes integration not depend anymore of `cli` and thus not
require `cobra` and other packages to compile.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
|
|\
| |
| | |
Expose trust key path in config
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Allows storing key under any directory. In the case where the
"/etc/docker" directory is not preserved, this file can be
specified to a location where it will be preserved to ensure
the ID does not change across restarts.
Note this key is currently only used today to generate the ID
used in Docker info and for manifest schema v1 pushes. The key
signature and finger on these manifests are not checked or
used any longer for security, deprecated by notary.
Removes old key migration from a pre-release of Docker which put
the key under the home directory and was used to preserve ID used
for swarm v1 after the file moved.
closes #32135
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
|
|/
|
|
| |
Signed-off-by: Colin Hebert <hebert.colin@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moby project scope
Starting with this commit, integration tests should no longer rely on
the docker cli, they should be API tests instead. For the existing tests
the scripts will use a frozen version of the docker cli with a
DOCKER_API_VERSION frozen to 1.30, which should ensure that the CI remains
green at all times.
To help contributors develop and test manually with a modified docker
cli, this commit also adds a DOCKER_CLI_PATH environment variable to the
Makefile. This allows to set the path of a custom cli that will be
available inside the development container and used to run the
integration tests.
Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is synonymous with `docker run --cidfile=FILE` and writes the digest of
the newly built image to the named file. This is intended to be used by build
systems which want to avoid tagging (perhaps because they are in CI or
otherwise want to avoid fixed names which can clash) by enabling e.g. Makefile
constructs like:
image.id: Dockerfile
docker build --iidfile=image.id .
do-some-more-stuff: image.id
do-stuff-with <image.id
Currently the only way to achieve this is to use `docker build -q` and capture
the stdout, but at the expense of losing the build output.
In non-silent mode (without `-q`) with API >= v1.29 the caller will now see a
`JSONMessage` with the `Aux` field containing a `types.BuildResult` in the
output stream for each image/layer produced during the build, with the final
one being the end product. Having all of the intermediate images might be
interesting in some cases.
In silent mode (with `-q`) there is no change, on success the only output will
be the resulting image digest as it was previosuly.
There was no wrapper to just output an Aux section without enclosing it in a
Progress, so add one here.
Added some tests to integration cli tests.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
|
|\
| |
| | |
Move "labels" to compose 3.3 format
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Commit bb5dfdb8c5acd48f17498b111db360820a50baec added a
labels option to the docker-compose file format, but
added it to the 3.2 schema.
This patch moves the change to the 3.3 schema
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
|
|\ \
| | |
| | | |
delete ineffectual assignment
|
| | |
| | |
| | |
| | | |
Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
|
| |/
|/|
| |
| |
| |
| |
| | |
StreamFormatter suffered was two distinct structs mixed into a single struct
without any overlap.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
|
|\ \
| | |
| | | |
Remove service runtime filter in stack command
|
| | |
| | |
| | |
| | | |
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
|
|\ \ \
| | | |
| | | | |
Add the `CACert` parameter to the `ExternalCA` object
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
swarmkit's API type. Make sure this parameter gets propagated to
swarmkit, and also add an extra option to the CLI when providing
external CAs to parse the CA cert from a file.
Signed-off-by: Ying Li <ying.li@docker.com>
|
|\ \ \ \
| | | | |
| | | | | |
do not allow duration less than 1 ms in healthcheck parameters
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Dong Chen <dongluo.chen@docker.com>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Data path traffic separation option in swarm mode
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This new flag will allow the configuration of an interface that
can be used for data path traffic to be isolated from control
plane traffic. This flag is simply percolated down to libnetwork
and will be used by all the global scope drivers (today overlay)
Negative test added for invalid flag arguments
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
|
|\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
Add the format option to the docker stack ls command
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Set Composefile WorkingDir to dirname of the composefile.
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Signed-off-by: Daniel Nephin <dnephin@docker.com>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
cli: Correct command/image tests for testify
|
| | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These tests were caught in the crossfire of the transition to testify.
testify has a few subtle differences from the similar custom framework
it replaced:
- Error behaves differently
- Equal takes its arguments in a different order
This PR also takes the opportunity to use a few shorthands from testify,
such as Len, True, and False.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Add logdrivers to /info
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is required for swarmkit to be able to filter based on log driver.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix docker run -it on windows
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Signed-off-by: Vincent Demeester <vincent@demeester.fr>
|
|/ / / /
| | | |
| | | |
| | | | |
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
|
|\ \ \ \
| | | | |
| | | | | |
remove --init-path from client
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Unit tests for cli/command/image package
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Ignacio Capurro <icapurrofagian@gmail.com>
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Output `docker swarm join` command on a single line when running `docker swarm init`
|