I'm encountering an issue when running `docker-compose up -d`

Hello Docker community,

I’m currently facing an issue while trying to run Docker-Compose on my Chromebook. I’m encountering the following error message:

ronak15082002@penguin:~/cosc304_lab2$ docker-compose up -d
Pulling cosc304-mysql (mysql:8.0)…
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/docker/credentials/store.py”, line 79, in _execute
output = subprocess.check_output(

docker.errors.DockerException: Credentials store error: StoreError(‘Credentials store docker-credential-pass exited with “exit status 2: gpg: decryption failed: No secret key”.’)

Issue Description:
When I attempt to run docker-compose up -d, I receive the error message above, which mentions an issue with the Docker credential store and GPG decryption. I’ve verified that GPG is installed on my Chromebook, but I’m not sure why this error is occurring or how to resolve it.


  • Operating System: Chrome OS (on a Chromebook)
  • Docker Version: 24.0.6
  • Docker-Compose Version: 1.25.0

Client: Docker Engine - Community
Version: 24.0.6
Context: default
Debug Mode: false
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.0
Path: /usr/libexec/docker/cli-plugins/docker-compose

I’m not familiar with ChromeOS, but I’m fairly sure it’s Linux based, so here’s the steps that solved the “exit status 2: gpg: decryption failed: No secret key” error for me (source).

Make sure you have gnupg installed and your gpg-agent is running

systemctl --user status pgp-agent

Add the official Docker GPG key

sudo mkdir -p /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg

Update the permissions

sudo chmod a+r /etc/apt/keyrings/docker.gpg

You may need to restart your agent (stop it, it will auto-restart)

systemctl --user stop gpg-agent

I hope this helps :slight_smile: