Skip to content

Commit

Permalink
Merge pull request #689 from thaJeztah/remove-daemon-subcommand
Browse files Browse the repository at this point in the history
Remove deprecated "daemon" subcommand
  • Loading branch information
dnephin authored Nov 23, 2017
2 parents 8d41ba0 + c6a3199 commit 227dfea
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 166 deletions.
29 changes: 0 additions & 29 deletions cmd/docker/daemon_none.go

This file was deleted.

17 changes: 0 additions & 17 deletions cmd/docker/daemon_none_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions cmd/docker/daemon_unit_test.go

This file was deleted.

79 changes: 0 additions & 79 deletions cmd/docker/daemon_unix.go

This file was deleted.

5 changes: 0 additions & 5 deletions cmd/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ func newDockerCommand(dockerCli *command.DockerCli) *cobra.Command {
return command.ShowHelp(dockerCli.Err())(cmd, args)
},
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
// daemon command is special, we redirect directly to another binary
if cmd.Name() == "daemon" {
return nil
}
// flags must be the top-level command flags, not cmd.Flags()
opts.Common.SetDefaultOptions(flags)
dockerPreRun(opts)
Expand All @@ -64,7 +60,6 @@ func newDockerCommand(dockerCli *command.DockerCli) *cobra.Command {
setHelpFunc(dockerCli, cmd, flags, opts)

cmd.SetOutput(dockerCli.Out())
cmd.AddCommand(newDaemonCommand())
commands.AddCommands(cmd, dockerCli)

setValidateArgs(dockerCli, cmd, flags, opts)
Expand Down
2 changes: 1 addition & 1 deletion docs/deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ The `filter` param to filter the list of image by reference (name or name:tag) i
### `docker daemon` subcommand
**Deprecated In Release: [v1.13.0](https://github.com/docker/docker/releases/tag/v1.13.0)**

**Target For Removal In Release: v17.12**
**Removed In Release: v17.12**

The daemon is moved to a separate binary (`dockerd`), and should be used instead.

Expand Down
2 changes: 1 addition & 1 deletion man/src/image/pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Registry credentials are managed by **docker-login(1)**.

Docker uses the `https://` protocol to communicate with a registry, unless the
registry is allowed to be accessed over an insecure connection. Refer to the
[insecure registries](https://docs.docker.com/engine/reference/commandline/daemon/#insecure-registries)
[insecure registries](https://docs.docker.com/engine/reference/commandline/dockerd/#insecure-registries)
section in the online documentation for more information.


Expand Down
2 changes: 1 addition & 1 deletion scripts/test/unit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -eu -o pipefail

go test -tags daemon -v "$@"
go test -v "$@"

0 comments on commit 227dfea

Please sign in to comment.