Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose -f docker-compose.yml --compatibility up -d doesn't build anything #209

Closed
mi93 opened this issue Jun 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mi93
Copy link

mi93 commented Jun 9, 2023

Describe the bug

I'm trying to launch crAPI for the first time and I'm not able to build it. After I run docker-compose -f docker-compose.yml --compatibility up -d it starts building but gets stuck on the first step - building container postgresdb. Process has been running for approximately 20 minutes nothing has changed and none of the containers has been created.

docker-compose -f docker-compose.yml --compatibility up -d
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6767 100 6767 0 0 21341 0 --:--:-- --:--:-- --:--:-- 21758
[+] Pulling 8/8
✔ api.crapi.io Pulled 3.1s
✔ crapi-community Pulled 3.1s
✔ mailhog Pulled 3.1s
✔ crapi-identity Pulled 3.1s
✔ crapi-web Pulled 3.1s
✔ crapi-workshop Pulled 3.1s
✔ mongodb Pulled 3.1s
✔ postgresdb Pulled 3.1s
[+] Building 0.0s (0/0)
[+] Running 0/4
[+] Running 0/4stgresdb Creating 1086.4s
[+] Running 0/4stgresdb Creating 1093.5s
[+] Running 0/4stgresdb Creating 1104.3s
⠹ Container postgresdb Creating 2192.2s
⠹ Container api.crapi.io Creating 2192.2s
⠹ Container mongodb Creating 2192.2s
⠹ Container mailhog Creating 2192.2s

I've checked Acitivity Monitor (CPU, Memory etc) and it doesn't seem to be a problem with hardware. I also tried running the command with sudo but it didn't help.
I believe I'm using the latest version of crAPI images as I had successfully ran curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml and docker-compose pull commands.

So here's a list of the exact steps I've taken:

  1. Installed Docker,
  2. Run Desktop Docker,
  3. (Successfully) run curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml and docker-compose pull command,
  4. (Successfully) run docker-compose pull command,
  5. Run docker-compose -f docker-compose.yml --compatibility up -d and got stuck.

Runtime Environment

Output of docker-compose version
Docker Compose version v2.18.1

Output of docker -v
Docker version 24.0.2, build cb74dfc

OS: MacOS Version 15.0 (15.0)
Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64

Can you please provide some guidance on this? I've tried searching for a solution but failed.

@mi93 mi93 added the bug Something isn't working label Jun 9, 2023
@mi93
Copy link
Author

mi93 commented Jun 10, 2023

Closing the issue. It turned out I had already built containers and deleteing them in Docker Desktop and running the command again resolved the problem.

@mi93 mi93 closed this as completed Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant