feat: add wsl support (Docker Desktop)#2
Conversation
| let wsl_path: String; | ||
|
|
||
| if is_wsl() { | ||
| wsl_path = wslpath::wsl_to_windows(&self.path.to_owned()).unwrap().to_owned().replace("/", "\\"); |
There was a problem hiding this comment.
Are you running docker on Windows instead of WSL?
I tried this branch on Ubuntu 20.04 of WSL2 for Window10. And, I started docker on my WSL2. After running axon start command by axon-cli. I got the following error msg:
Error: error 400 Bad Request - create \wsl$\Ubuntu-20.04\root.axon/devtools: "\\wsl$\Ubuntu-20.04\root\.axon/devtools" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path
If I run the main branch of axon-cli, it works fine.
There was a problem hiding this comment.
Did you install Docker on WSL using https://www.docker.com/products/docker-desktop/ or did you install it in custom way?
I'm running Docker Desktop on WSL with exposed Remote API port from Windows host (it was unreachable otherwise)
There was a problem hiding this comment.
I'm not sure cause I installed Docker long time ago.
But I didn't install Docker on my Win10 machine. Looks like I installed Docker for Ubuntu in custom way.
By the way, I'm using WSL2 instead fo WSL.
curl http://<YOUR_HOST_IP>:2375/images/jsonin WSL to see if accessing remote Docker API works.cargo build && DOCKER_API_URL=tcp://<YOUR_HOST_IP>:2375 ./target/debug/axon-cliWorks:
