This is my personal use Remote Tunnel, you will need a GitHub account to set up this.
If you need a self-host version, not using vscode.dev, you can check out linuxserver/docker-code-server.
If you see permission error, then you must chown 1000:1000 volume_path.
After you startup container, using docker compose logs to setup workspace!
version: "3"
services:
workspace:
hostname: workspace
container_name: workspace
image: ghcr.io/docker-collection/workspace:latest
volumes:
- "./path:/home/ubuntu"
environment:
- SUDO_PASSWORD=1234567890
restart: always