Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeReady Containers not starting

Tags:

openshift

I'm using the latest version of CodeReady Containers but after the first run, it doesn't start anymore:

>crc start -p pull-secret.txt 
Is '/Applications/CodeReady Containers.app' running? Cannot reach daemon API: Get 
"http://unix/api/version": dial unix /Users/user/.crc/crc-http.sock: connect: 
connection refused

I tried to delete and cleanup but it doesn't help.

>crc status --log-level debug
DEBU CodeReady Containers version: 1.38.0+659b2cbd 
DEBU OpenShift version: 4.9.12 (bundle installed at /Applications/CodeReady Containers.app/Contents/Resources/crc_hyperkit_4.9.12.crcbundle) 
DEBU Running 'crc status'                         
DEBU Checking file: /Users/user/.crc/machines/crc/.crc-exist 
Machine does not exist. Use 'crc start' to create it
>crc config view
- autostart-tray                        : false
- consent-telemetry                     : no
- cpus                                  : 6
- memory                                : 16384
- pull-secret-file                      : /Users/user/openshift/pull-secret.txt

Same issue appears on both MacOS and Windows. Any idea on how to solve? Or alternatively other ways to install Openshift locally for free?

like image 490
parax Avatar asked Sep 05 '25 03:09

parax


1 Answers

In one shell window run "crc daemon". Open another shell window and run "crc start".

like image 113
Sean.Ruffatti Avatar answered Sep 08 '25 01:09

Sean.Ruffatti