Skip to content

Docker: Restarting container #2267

Closed
Closed
@martindsouza

Description

@martindsouza
  • Web Browser:
  • Local OS: MacOS
  • Remote OS:
  • Remote Architecture:
  • code-server --version: Docker (latest)

I setup Docker as described here: https://github.com/cdr/code-server/blob/v3.6.2/doc/install.md#docker

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. I try to start the container again using: docker start code-server and nothing happens.

When I run docker logs code-server I get the following: usermod: user 'coder' does not exist

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghigh-priorityThis issue needs to be resolved ASAP

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions