mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-22 00:00:40 +00:00
Merge pull request #103 from tuxity/dockerd
Use dockerd instead of docker daemon
This commit is contained in:
commit
0d98008242
@ -148,6 +148,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 {
|
||||
@ -268,7 +269,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)
|
||||
@ -294,7 +295,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
|
||||
|
Loading…
Reference in New Issue
Block a user