diff --git a/dnsconfig.go b/dnsconfig.go index 06581f6..1455003 100644 --- a/dnsconfig.go +++ b/dnsconfig.go @@ -200,12 +200,12 @@ func (d *DnsConfig) RevertDockerDNSServer(cmd Command, configPath string) error } if cmd == nil { - cmd = exec.Command("/bin/sh", "-c", "sudo systemctl daemon-reload && sudo systemctl reload docker") + cmd = exec.Command("/bin/sh", "-c", "sudo systemctl daemon-reload && sudo systemctl restart docker") } err = cmd.Run() if err != nil { - return fmt.Errorf(fmt.Sprintf("error reloading docker: %v", err)) + return fmt.Errorf(fmt.Sprintf("error restarting docker: %v", err)) } } return nil diff --git a/release-monitor.yml b/release-monitor.yml index 6d46399..b71acd2 100644 --- a/release-monitor.yml +++ b/release-monitor.yml @@ -7,7 +7,7 @@ release-process: - artifact: agent_{{.Version}}_linux_amd64.tar.gz binary: agent build-command: go build -trimpath -ldflags="-s -w -X main.version={{.Version}} -X main.commit={{.FullCommit}} -X main.date=123" - go-version: 1.17.11 + go-version: 1.17.12 pipeline: github-action: repo: step-security/agent