fix: fix docker daemon startup

This commit is contained in:
Robert Kaussow 2022-04-25 21:09:59 +02:00
parent 965a93f4ad
commit 5da3470af6
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
5 changed files with 15 additions and 22 deletions

View File

@ -140,7 +140,7 @@ local PipelineBuildContainer(arch='amd64') = {
}, },
{ {
name: 'dryrun', name: 'dryrun',
image: 'thegeeklab/drone-docker:19', image: 'thegeeklab/drone-docker:19.4.2',
settings: { settings: {
dry_run: true, dry_run: true,
dockerfile: 'docker/Dockerfile.' + arch, dockerfile: 'docker/Dockerfile.' + arch,
@ -153,7 +153,7 @@ local PipelineBuildContainer(arch='amd64') = {
}, },
{ {
name: 'publish-dockerhub', name: 'publish-dockerhub',
image: 'thegeeklab/drone-docker:19', image: 'thegeeklab/drone-docker:19.4.2',
settings: { settings: {
auto_tag: true, auto_tag: true,
auto_tag_suffix: arch, auto_tag_suffix: arch,
@ -169,7 +169,7 @@ local PipelineBuildContainer(arch='amd64') = {
}, },
{ {
name: 'publish-quay', name: 'publish-quay',
image: 'thegeeklab/drone-docker:19', image: 'thegeeklab/drone-docker:19.4.2',
settings: { settings: {
auto_tag: true, auto_tag: true,
auto_tag_suffix: arch, auto_tag_suffix: arch,

View File

@ -110,7 +110,7 @@ steps:
- make build - make build
- name: dryrun - name: dryrun
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
dockerfile: docker/Dockerfile.amd64 dockerfile: docker/Dockerfile.amd64
dry_run: true dry_run: true
@ -122,7 +122,7 @@ steps:
- build - build
- name: publish-dockerhub - name: publish-dockerhub
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: amd64 auto_tag_suffix: amd64
@ -140,7 +140,7 @@ steps:
- dryrun - dryrun
- name: publish-quay - name: publish-quay
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: amd64 auto_tag_suffix: amd64
@ -182,7 +182,7 @@ steps:
- make build - make build
- name: dryrun - name: dryrun
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
dockerfile: docker/Dockerfile.arm64 dockerfile: docker/Dockerfile.arm64
dry_run: true dry_run: true
@ -194,7 +194,7 @@ steps:
- build - build
- name: publish-dockerhub - name: publish-dockerhub
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm64 auto_tag_suffix: arm64
@ -212,7 +212,7 @@ steps:
- dryrun - dryrun
- name: publish-quay - name: publish-quay
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm64 auto_tag_suffix: arm64
@ -254,7 +254,7 @@ steps:
- make build - make build
- name: dryrun - name: dryrun
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
dockerfile: docker/Dockerfile.arm dockerfile: docker/Dockerfile.arm
dry_run: true dry_run: true
@ -266,7 +266,7 @@ steps:
- build - build
- name: publish-dockerhub - name: publish-dockerhub
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm auto_tag_suffix: arm
@ -284,7 +284,7 @@ steps:
- dryrun - dryrun
- name: publish-quay - name: publish-quay
image: thegeeklab/drone-docker:19 image: thegeeklab/drone-docker:19.4.2
settings: settings:
auto_tag: true auto_tag: true
auto_tag_suffix: arm auto_tag_suffix: arm
@ -454,6 +454,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 9272f58ad1c23c3d09fe6d4c61d4f6343c9fc70229826a55c45179182b6e5f49 hmac: c7936b051185eea97ca550875cd641ce6bf5a2229791dafa36b3a31961ed8722
... ...

View File

@ -29,10 +29,3 @@ linters-settings:
gofumpt: gofumpt:
extra-rules: true extra-rules: true
lang-version: "1.18" lang-version: "1.18"
issues:
exclude-rules:
- path: plugin/daemon.go
linters:
- errcheck
text: "Error return value of `cmd.Run` is not checked"

View File

@ -22,6 +22,6 @@ func (p Plugin) startDaemon() {
} }
go func() { go func() {
trace(cmd) trace(cmd)
cmd.Run() _ = cmd.Run()
}() }()
} }

View File

@ -196,7 +196,7 @@ func (p *Plugin) Execute() error {
fmt.Printf("Could not prune system containers. Ignoring...\n") fmt.Printf("Could not prune system containers. Ignoring...\n")
case err != nil && isCommandRmi(cmd.Args): case err != nil && isCommandRmi(cmd.Args):
fmt.Printf("Could not remove image %s. Ignoring...\n", cmd.Args[2]) fmt.Printf("Could not remove image %s. Ignoring...\n", cmd.Args[2])
default: case err != nil:
return err return err
} }
} }