Describe the bug
When following the regular commands to create a laddr project, running the dockerfile on WSL does not work. It requires Docker Desktop to be running instead of using the running instance of docker within the WSL environment.
To Reproduce
Steps to rep### roduce the behavior:
- Initialise a project in a WSL environment
- Run
laddr run dev
- Error Trace :
(venv) wslsys@LAPTOP-PL705U7B:~/agnetlabs/laddr-test$ laddr run dev
Traceback (most recent call last):
File "/home/wslsys/agnetlabs/venv/bin/laddr", line 8, in <module>
sys.exit(cli())
^^^^^
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/click/core.py", line 1462, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/click/core.py", line 1383, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/click/core.py", line 1850, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/click/core.py", line 1850, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/click/core.py", line 1246, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/click/core.py", line 814, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/laddr/cli/commands/run.py", line 70, in run_dev
check_docker()
File "/home/wslsys/agnetlabs/venv/lib/python3.12/site-packages/laddr/cli/utils/docker.py", line 37, in check_docker
raise DockerNotFoundError()
laddr.cli.utils.errors.DockerNotFoundError: Docker not found or not running
Expected behavior
laddr should be able to recognize the docker process running on WSL itself and use that instead of requiring Docker Desktop.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
- Currently, when docker is not there/running, its giving this generic error message. It should give a better/custom error message (colourful CLI one). That would make it similar to nextjs error logs giving more detailed info.
- Also, this message might not make much sense wrt the demo video, since weare saying that its an alias to docker compose up. But it seems to be asking for docker anyways.
Describe the bug
When following the regular commands to create a laddr project, running the dockerfile on WSL does not work. It requires Docker Desktop to be running instead of using the running instance of docker within the WSL environment.
To Reproduce
Steps to rep### roduce the behavior:
laddr run devExpected behavior
laddr should be able to recognize the docker process running on WSL itself and use that instead of requiring Docker Desktop.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context