The post indicates that the community member is able to run Docker successfully, but encounters an error when running the "pnpm dev" step. The comments suggest that the community members are facing similar issues when following the instructions in the documentation to run Webstudio in Docker with VS Code. Some community members have provided suggestions, such as adding "127.0.0.1 wstd.dev" to the /etc/hosts file, or using localhost instead of wstd.dev. However, there is no explicitly marked answer to the issue.
I get similar errors to @Tuấn Phong when following the guide in the docs on how to run Webstudio in Docker with VS Code. @TrySound Where is your screenshot from as I can't see it in the docs either?
I use devcontainer with vscode, and gonna to remove all other sections. Probably some packages installed on mac/windows interfere with docker install etc
I was able to overcome this error, by adding “127.0.0.1 wstd.dev” to my /etc/hosts file. Now the dashboard and login works, but projects still don’t work. They are on subdomains of wstd.dev and thus are not reachable. I’m still figuring out a solution to this, but if anyone here knows how to do that, I’d appreciate any help. Hope this helps anyone, facing similar issues.
While I haven’t found a proper answer until now, I found some success with using localhost instead of wstd.dev. It gives you warnings, as ssl doesn’t work with localhost, but it works. Also make sure to also log in over the localhost route, as switching afterwards results in errors in the docker container. If I find a proper answer I will post it here.
Yeah, good question, I don’t know honestly. It’s been a while since I made this and I went back to my hosted version on my home server, where I have a local A-record set up. I only needed the fully local install on my device as I was not at home and lost connection to my home server. But as far as I remember I changed “wstd.dev” in the apps/builder/vite.config.ts file to “localhost”, and/or always calling “localhost” in my browser instead of “127.0.0.1”.
If you need this or have tried any of these two let me know how it went. I’m curious as well. If both don’t work, I might actually look into this as I wanted to report a bug with this on the Repo anyways.