I’d like to use this droplet as remote Docker server for VSCode development, I have Windows 11 with WSL2. If it is easy, I’d like next level - set up Windows Docker Desktop pointed to your(my) server
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya,
By default, Docker only listens to local connections for security. You’ll need to configure it to accept remote connections.
Add the following configuration, replacing
YOUR_IP
with your droplet’s IP address:Create and Install TLS Certificates: You’ll need to generate TLS certificates to securely connect to Docker remotely.
On the droplet:
after that restart Docker
2. Install Docker Desktop and Configure for Remote Connection
Expose daemon on tcp://localhost:2375 without TLS
.3. Configure VSCode for Remote Docker Development
Ctrl+Shift+P
), then select Remote-Containers: Attach to Running Container.4. Connect to Docker Desktop from VSCode
Now, in VSCode, open the Docker extension and select Connect to Host using the IP of your droplet with port
2376
. With Docker Desktop configured for remote development, you can seamlessly work with containers on your DigitalOcean server while managing from your local machine.Let me know if you’d like help with further configurations or any troubleshooting tips!