Closed tkstanczak closed 4 days ago
I made a change that should account for this.
You are very likely the only user attempting to use Eth Docker on Windows. It should work but I'm not testing there.
There may be more gotchas: Ethstaker Discord is a good place to work through them.
redacted:/mnt/c/src/eth-docker$ ethd logs -f --tail 50 Unit docker.service could not be found. The Docker daemon is not running. Please check Docker installation. "sudo systemctl status docker" and "sudo journalctl -fu docker" will be helpful.
Info from ChatGPT:
The reason
docker.service
does not appear in the list of services is that, in a typical WSL 2 environment, Docker is not managed bysystemd
. Instead, Docker Desktop for Windows manages the Docker daemon, and the integration with WSL 2 is done through the Docker Desktop application, not through a traditionalsystemd
service.Here's a more detailed explanation:
WSL 2 Does Not Use
systemd
by Default: While your output shows thatsystemd
is running in your WSL 2 environment (likely because you have enabled it manually), Docker itself in WSL 2 does not rely on adocker.service
managed bysystemd
. Instead, Docker Desktop manages the Docker daemon from the Windows side.Docker Daemon is Managed by Docker Desktop:
docker.service
) is not managed by the WSL environment itself.How to Check Docker Status in WSL 2:
systemctl
, you can check the Docker daemon's status using:Why
systemd
Docker Service is Not Needed in WSL 2:docker.service
managed bysystemd
inside WSL 2 would be redundant and is not typically used.If you specifically need to run
docker.service
throughsystemd
in WSL 2 (for testing or other specific needs), you would need to manually install and configure Docker inside the WSL distribution, separate from Docker Desktop. However, this setup is less common and not recommended when using Docker Desktop.