Closed
Description
- Web Browser:
- Local OS: MacOS
- Remote OS: Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-123-generic x86_64)
- Remote Architecture:
code-server --version
: 3.9.0
I set up code-server with Docker as indicated in https://hub.docker.com/r/codercom/code-server
mkdir -p ~/.config
docker run -it --name code-server -p 127.0.0.1:8080:8080 \
-v "$HOME/.config:/home/coder/.config" \
-v "$PWD:/home/coder/project" \
-u "$(id -u):$(id -g)" \
-e "DOCKER_USER=$USER" \
codercom/code-server:latest
The initial run works perfectly. I then stop the container using ctrl+c. When I try to start the container again using docker start code-server
the container stops immediately. Running docker logs code-server
outputs:
[2021-02-25T14:46:34.514Z] info code-server 3.9.0 fc6d123da59a4e5a675ac8e080f66e032ba01a1b
[2021-02-25T14:46:34.516Z] info Using user-data-dir ~/.local/share/code-server
[2021-02-25T14:46:34.537Z] info Using config file ~/.config/code-server/config.yaml
[2021-02-25T14:46:34.538Z] info HTTP server listening on http://0.0.0.0:8080
[2021-02-25T14:46:34.538Z] info - Authentication is enabled
[2021-02-25T14:46:34.538Z] info - Using password from ~/.config/code-server/config.yaml
[2021-02-25T14:46:34.538Z] info - Not serving HTTPS
^Cusermod: user 'coder' does not exist
This issue seems to be related to #2267, but I am still getting the user error message.