docker-credential-helpers: strange errors on docker build

Hi, if I just do docker build . I get the following output printed:

double free or corruption (out)
SIGABRT: abort
PC=0x7ffbb579ce97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4afd50, 0xc42004fcc0, 0xc42004fce8)
        /usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc42004fc90 sp=0xc42004fc50
github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x10d7990)
        github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc42004fcc0 sp=0xc42004fc90
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x10d7990)
        /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc42004fcf8 sp=0xc42004fcc0
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc4200123c0)
        /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc42004fda0 sp=0xc42004fcf8
github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc42004fe88, 0x410022, 0xc420012320)
        <autogenerated>:4 +0x46 fp=0xc42004fde0 sp=0xc42004fda0
github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc42000e018, 0x0, 0x10)
        /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc42004fe68 sp=0xc42004fde0
github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7ffca6c99fb5, 0x4, 0x7560a0, 0xc42000e010, 0x7560e0, 0xc42000e018, 0x40e398, 0x4d35c0)
        /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc42004fed8 sp=0xc42004fe68
github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548)
        /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc42004ff58 sp=0xc42004fed8
main.main()
        /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc42004ff88 sp=0xc42004ff58
runtime.main()
        /usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc42004ffe0 sp=0xc42004ff88
runtime.goexit()
        /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42004ffe8 sp=0xc42004ffe0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1

I am using Ubuntu 18.04 with docker version:

Client:
 Version:      18.05.0-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   f150324
 Built:        Wed May  9 22:16:13 2018
 OS/Arch:      linux/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.05.0-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   f150324
  Built:        Wed May  9 22:14:23 2018
  OS/Arch:      linux/amd64
  Experimental: true

Maybe this could be related to #23 but I don’t have much knowledge of go. Worth to mention: the docker build is not aborted and continues but this output is confusing.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 62
  • Comments: 48 (1 by maintainers)

Most upvoted comments

answer by aidanh010 ( dpkg -r --force-depends golang-docker-credential-helpers ) worked for me, and no need to restart the docker service.

I don’t think there is a link to docker-compose other than on Ubuntu where installing compose pulls in the golang-docker-credential-helpers dependency, triggering the issue to start appearing. Removing the credentials helper package with dpkg -r --force-depends removes this issue and leaves docker-compose working fine. For a more practical workaround install with pip or script on Docker’s docs site.

edit: link to Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/docker-compose/+bug/1792824

“dpkg -r --force-depends golang-docker-credential-helpers” worked for me too 😃

For me the problem went away after installing the following packages: sudo apt install gnupg2 pass gpg

Installed Docker packages:

sudo apt list --installed '*docker*'
Listing... Done
docker-ce/bionic,now 5:19.03.5~3-0~ubuntu-bionic amd64 [installed]
docker-ce-cli/bionic,now 5:19.03.5~3-0~ubuntu-bionic amd64 [installed]
docker-cimprov/now 1.0.0.37 amd64 [installed,local]
docker-compose/bionic,now 1.17.1-2 all [installed]
golang-docker-credential-helpers/bionic,now 0.5.0-2 amd64 [installed,automatic]
python-docker/bionic,now 2.5.1-1 all [installed,automatic]
python-dockerpty/bionic,now 0.4.1-1 all [installed,automatic]
python-dockerpycreds/bionic,now 0.2.1-1 all [installed,automatic]

Ubuntu version:

sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

“dpkg -r --force-depends golang-docker-credential-helpers” workes for me.

The same error on Ubuntu 18.04 using Docker version 18.06.1-ce, build e68fc7a: (The command works fine, despite the error.) The error appears after docker-compose (v 1.17.1-2) installation. Removing docker-compose resolves this issue.

sudo apt-get remove docker-compose
sudo apt autoremove
sudo docker build -t pigeon .
double free or corruption (out)
SIGABRT: abort
PC=0x7f82a6ff1e97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4afd50, 0xc42004dcc0, 0xc42004dce8)
	/usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc42004dc90 sp=0xc42004dc50
github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x1956920)
	github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc42004dcc0 sp=0xc42004dc90
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x1956920)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc42004dcf8 sp=0xc42004dcc0
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc420014380)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc42004dda0 sp=0xc42004dcf8
github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc42004de88, 0x410022, 0xc4200142e0)
	<autogenerated>:4 +0x46 fp=0xc42004dde0 sp=0xc42004dda0
github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc42000e018, 0x0, 0x10)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc42004de68 sp=0xc42004dde0
github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7fff30197868, 0x4, 0x7560a0, 0xc42000e010, 0x7560e0, 0xc42000e018, 0x40e398, 0x4d35c0)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc42004ded8 sp=0xc42004de68
github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc42004df58 sp=0xc42004ded8
main.main()
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc42004df88 sp=0xc42004df58
runtime.main()
	/usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc42004dfe0 sp=0xc42004df88
runtime.goexit()
	/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42004dfe8 sp=0xc42004dfe0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1

rax    0x0
rbx    0x7fff301965c0
rcx    0x7f82a6ff1e97
rdx    0x0
rdi    0x2
rsi    0x7fff30196350
rbp    0x7fff301966c0
rsp    0x7fff30196350
r8     0x0
r9     0x7fff30196350
r10    0x8
r11    0x246
r12    0x7fff301965c0
r13    0x1000
r14    0x0
r15    0x30
rip    0x7f82a6ff1e97
rflags 0x246
cs     0x33
fs     0x0
gs     0x0
Sending build context to Docker daemon  6.144kB
Step 1/9 : FROM alpine:3.8

See: https://github.com/moby/moby/issues/34048

As hinted by this gentleman, installing gnome-keyring fixes the error, on an ubuntu… server!! (18.04)

Same here on Ubuntu 18.04 using Docker version 18.06.0-ce , but when I uninstall docker-compose , the problem was resolved , (sudo apt-get remove docker-compose) , I think there is link between docker-compose and the problem.

Before anyone comments with a me too comment please test the current state of master. PR #29 should have resolved this. It may need back-porting to the distro packages.

Uninstalling system wide docker-compose and install it via pip3 works for me on Ubuntu 18.04.1 LTS.

sudo apt purge docker-compose
sudo apt autoremove
sudo apt install python3-pip
sudo pip3 install docker-compose

I have the same error using Kubuntu 18.04 with docker version :

Client:
 Version:      17.12.1-ce
 API version:  1.35
 Go version:   go1.10.1
 Git commit:   7390fc6
 Built:        Wed Apr 18 01:23:11 2018
 OS/Arch:      linux/amd64

We solved it on out machine with sudo apt-get install pass gnupg2

Uninstalling system wide docker-compose and install it via pip3 works for me on Ubuntu 18.04.1 LTS.

sudo apt purge docker-compose
sudo apt autoremove
sudo apt install python3-pip
sudo pip3 install docker-compose

You should do pip3 install --user docker-compose instead so you don’t screw up your system libraries

Uninstalling system wide docker-compose and install it via pip3 works for me on Ubuntu 18.04.1 LTS.

sudo apt purge docker-compose
sudo apt autoremove
sudo apt install python3-pip
sudo pip3 install docker-compose

You should do pip3 install --user docker-compose instead so you don’t screw up your system libraries

The recommended way to install pip is through get pip

So instead I’d do(SEE EDIT2):

sudo apt-get purge docker-compose
sudo apt-get autoremove
# Make sure you have exported any proxies if needed
sudo apt-get install python3 python3-distutils
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo -H -E python3 get-pip.py; rm get-pip.py
sudo -H -E pip3 install docker-compose

EDIT: Directly piping get-pip into python results in a warning and might cause problems in the future. updated the install routine.

EDIT2: better install docker-compose as recommended

You can even install it on your Calculator via a COM connection. The point is that the preferred way is with pip3 without sudo if possible.

Same here on Ubuntu 18.04

r$ docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Wed Jun 20 21:43:51 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm

Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Wed Jun 20 21:42:00 2018 OS/Arch: linux/amd64 Experimental: false

r$ docker build . free(): invalid pointer SIGABRT: abort PC=0x7f838bbb4e97 m=0 sigcode=18446744073709551610 signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]: runtime.cgocall(0x4afd50, 0xc420049cc0, 0xc420049ce8) /usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc420049c90 sp=0xc420049c50 github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x1509270) github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc420049cc0 sp=0xc420049c90 github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x1509270) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc420049cf8 sp=0xc420049cc0 github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc420018350) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc420049da0 sp=0xc420049cf8 github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc420049e88, 0x410022, 0xc4200182a0) <autogenerated>:4 +0x46 fp=0xc420049de0 sp=0xc420049da0 github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc42000e018, 0x0, 0x10) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc420049e68 sp=0xc420049de0 github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7ffec8d80794, 0x4, 0x7560a0, 0xc42000e010, 0x7560e0, 0xc42000e018, 0x40e398, 0x4d35c0) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc420049ed8 sp=0xc420049e68 github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc420049f58 sp=0xc420049ed8 main.main() /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc420049f88 sp=0xc420049f58 runtime.main() /usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc420049fe0 sp=0xc420049f88 runtime.goexit() /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420049fe8 sp=0xc420049fe0

goroutine 17 [syscall, locked to thread]: runtime.goexit() /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1

rax 0x0 rbx 0x7ffec8d7f820 rcx 0x7f838bbb4e97 rdx 0x0 rdi 0x2 rsi 0x7ffec8d7f5b0 rbp 0x7ffec8d7f920 rsp 0x7ffec8d7f5b0 r8 0x0 r9 0x7ffec8d7f5b0 r10 0x8 r11 0x246 r12 0x7ffec8d7f820 r13 0x1000 r14 0x0 r15 0x30 rip 0x7f838bbb4e97 rflags 0x246 cs 0x33 fs 0x0 gs 0x0 Sending build context to Docker daemon 3.305MB

I was able to fix by removing the apt installed docker-compose, and using the curl instructions to install on the docker website https://docs.docker.com/compose/install/.

Probably get dinged for this answer. Was getting same cgo execution error too, and just like above, built it anyway too. Not sure why; but added $USER to docker group.
sudo usermod -a -G docker $USER Then completely shut down and restarted. Got rid of need for sudo (which I expected); but error went away too.

Also getting a very similar error, using Ubuntu 18.04. The command works fine, despite the error.

$ sudo docker build .
double free or corruption (out)
SIGABRT: abort
PC=0x7f0d7bcc7e97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4afd50, 0xc42004fcc0, 0xc42004fce8)
	/usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc42004fc90 sp=0xc42004fc50
github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x19b7920)
	github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc42004fcc0 sp=0xc42004fc90
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x19b7920)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc42004fcf8 sp=0xc42004fcc0
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc4200762c0)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc42004fda0 sp=0xc42004fcf8
github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc42004fe88, 0x410022, 0xc420076220)
	<autogenerated>:4 +0x46 fp=0xc42004fde0 sp=0xc42004fda0
github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc420094008, 0x0, 0x10)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc42004fe68 sp=0xc42004fde0
github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7ffdf11cb701, 0x4, 0x7560a0, 0xc420094000, 0x7560e0, 0xc420094008, 0x40e398, 0x4d35c0)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc42004fed8 sp=0xc42004fe68
github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc42004ff58 sp=0xc42004fed8
main.main()
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc42004ff88 sp=0xc42004ff58
runtime.main()
	/usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc42004ffe0 sp=0xc42004ff88
runtime.goexit()
	/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42004ffe8 sp=0xc42004ffe0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1

rax    0x0
rbx    0x7ffdf11ca8e0
rcx    0x7f0d7bcc7e97
rdx    0x0
rdi    0x2
rsi    0x7ffdf11ca670
rbp    0x7ffdf11ca9e0
rsp    0x7ffdf11ca670
r8     0x0
r9     0x7ffdf11ca670
r10    0x8
r11    0x246
r12    0x7ffdf11ca8e0
r13    0x1000
r14    0x0
r15    0x30
rip    0x7f0d7bcc7e97
rflags 0x246
cs     0x33
fs     0x0
gs     0x0

Ubuntu:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04 LTS
Release:	18.04
Codename:	bionic

Docker:

$ sudo docker version
Client:
 Version:	17.12.1-ce
 API version:	1.35
 Go version:	go1.10.1
 Git commit:	7390fc6
 Built:	Wed Apr 18 01:23:11 2018
 OS/Arch:	linux/amd64

Server:
 Engine:
  Version:	17.12.1-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.10.1
  Git commit:	7390fc6
  Built:	Wed Feb 28 17:46:05 2018
  OS/Arch:	linux/amd64
  Experimental:	false

You don’t have to remove the package, just remove the execute permission:

chmod -x /usr/bin/docker-credential-secretservice

‘dpkg -r --force-depends golang-docker-credential-helpers’ worked for me too! 😃

@sveinse We ran them in production for several months without any issues at all from this. Granted that’s not formal proof that it doesn’t cause any, but it doesn’t seem that this error causes any issues to the built images.

I’m seeing the exact same thing on Ubuntu 18.04

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04 LTS
Release:	18.04
Codename:	bionic
Client:
 Version:      18.03.1-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   9ee9f40
 Built:        Thu Apr 26 07:16:22 2018
 OS/Arch:      linux/arm64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.03.1-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   9ee9f40
  Built:        Thu Apr 26 07:14:27 2018
  OS/Arch:      linux/arm64
  Experimental: false

Dockerfile

FROM node:8.10.0
EXPOSE 8080
COPY server.js .
CMD node server.js