Hello, I'm trying to create a docker image but I g...
# aws
c
Hello, I'm trying to create a docker image but I got this error during pulumi up: ` error: getting host: error listing credentials - err: signal: killed, out: ``` Any idea ? Thanks
Copy code
const repo = new aws.ecr.Repository('my-repo', {
  forceDelete: true,
});

const authToken = aws.ecr.getAuthorizationTokenOutput({
  registryId: repo.registryId,
});

const image = new docker_build.Image('my-image', {
  dockerfile: {
    location: '../../Dockerfile',
  },
  platforms: ['linux/amd64'],
  push: true,
  registries: [
    {
      address: repo.repositoryUrl,
      password: authToken.password,
      username: authToken.userName,
    },
  ],
  tags: [pulumi.interpolate`${repo.repositoryUrl}:latest`],
});
It seems that my Docker Desktop (for Mac) silently crashed and could not be restarted. I had to reinstall it.
q
This error is coming from Docker itself. It seems to be having issues loading its own credentials. Could you try looking at the config file to check if it's valid? (
cat ~/.docker/config.json
) Alternatively try logging into dockerhub to see if that works (i.e.
docker login ...
)
Ah nice, happy that you were able to resolve it!