$ docker-compose ps
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
Was hast du getan ...
Apropos, es scheint, dass Docker für Windows etwas aktualisiert hat ...
| Name | Ausführung |
|---|---|
| docker for desktop | 2.3.0.5 |
| Engine | 19.03.12 |
| Notary | 0.6.1 |
| Compose | 1.27.2 |
| Credential Helper | 0.6.3 |
| Kubernetes | v1.16.5 |
Referenz Sie können Docker nicht mit WSL2 verwenden
Nachdem ich diese Einstellung vorgenommen hatte, bestätigte ich, dass es in WSL2 sicher funktioniert.
$ docker-compose ps
Name Command State Ports
------------------------------
Ich bin froh, dass ich nichts hatte.
Recommended Posts