smallstep / certificates

🛡️ A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH.
https://smallstep.com/certificates
Apache License 2.0
6.35k stars 415 forks source link

[Bug]: ERROR: for step-ca 'ContainerConfig' (docker-compose) #1857

Closed SpiderUnderUrBed closed 1 month ago

SpiderUnderUrBed commented 1 month ago

Steps to Reproduce

Run this in docker-compose

  step-ca:
    image: smallstep/step-ca:latest
    environment:
      - DOCKER_STEPCA_INIT_NAME="Acme Corp"
      - DOCKER_STEPCA_INIT_DNS_NAMES="step-ca.docker"
      - DOCKER_STEPCA_INIT_PASSWORD=mysecretpassword

Your Environment

Expected Behavior

Starting spiderunderurbed_step-ca...

Actual Behavior

https://pastebin.com/fUinrfPa

Additional Context

I dont know what other logs or information to apply, if any is asked, i will happily give

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

hslatman commented 1 month ago

Hey @SpiderUnderUrBed, can you try docker compose up -d instead?

Is it possible you updated docker and/or docker-compose recently, and then ran into this? docker-compose was deprecated a while ago, and it's possible things work slightly differently internally now. Also see https://github.com/docker/compose/issues/11742.

SpiderUnderUrBed commented 1 month ago

docker-compose up -d ^ this did not help and yeilded the same error, but thanks to your help in the discord, docker compose works, instead of docker-compose, I assume this is due to docker compose v2 using docker compose instead of docker-compose