0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-10 03:30:40 +00:00

docker daemon is deprecated since 1.13, using dockerd binary instead

This commit is contained in:
Kévin Darcel 2017-01-27 12:18:52 -06:00
parent 07b504834a
commit c9fb4e5261
No known key found for this signature in database
GPG Key ID: F29F49C57EA3F7AD

View File

@ -147,6 +147,7 @@ func (p Plugin) Exec() error {
}
const dockerExe = "/usr/local/bin/docker"
const dockerdExe = "/usr/local/bin/dockerd"
// helper function to create the docker login command.
func commandLogin(login Login) *exec.Cmd {
@ -264,7 +265,7 @@ func commandPush(build Build, tag string) *exec.Cmd {
// helper function to create the docker daemon command.
func commandDaemon(daemon Daemon) *exec.Cmd {
args := []string{"daemon", "-g", daemon.StoragePath}
args := []string{"-g", daemon.StoragePath}
if daemon.StorageDriver != "" {
args = append(args, "-s", daemon.StorageDriver)
@ -290,7 +291,7 @@ func commandDaemon(daemon Daemon) *exec.Cmd {
if daemon.Experimental {
args = append(args, "--experimental")
}
return exec.Command(dockerExe, args...)
return exec.Command(dockerdExe, args...)
}
// trace writes each command to stdout with the command wrapped in an xml