docker pull lennihein/code-server
docker build --rm -f Dockerfile -t lennihein/code-server .
docker run -d -p <PORT>:8080 lennihein/code-server
then simply connect via localhost:<PORT>
or <host-pc's IP>:<PORT>
docker run -d --name=code-server --net=host lennihein/code-server
and then change ~/.config/code-server/config.yaml:
bind-addr: 0.0.0.0:<PORT>
...
This fixes some issues where code-server cannot access Git repos hosted on the same host.