Skip to content

Can't restart docker container #3278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
videlanicolas opened this issue May 4, 2021 · 1 comment
Closed

Can't restart docker container #3278

videlanicolas opened this issue May 4, 2021 · 1 comment
Milestone

Comments

@videlanicolas
Copy link
Contributor

OS/Web Information

  • Web Browser: Chrome 90
  • Local OS: Chrome OS 13816
  • Remote OS: Debian Linux
  • Remote Architecture: Debian 5.10.19
  • code-server --version: v3.9.3

Steps to Reproduce

  1. $ docker run -d --name code-server -p 8080:8080 -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" -v "$HOME/.vscodeconfig:/home/coder/.config" -v "$PWD/vscode:/home/coder/project" codercom/code-server:latest
  2. $ docker ps
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    a5919042c212 codercom/code-server:latest "/usr/bin/entrypoint…" 7 seconds ago Up 5 seconds 0.0.0.0:8080->8080/tcp code-server
  3. $ docker restart a5919042c212
  4. $ docker ps
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  5. $ docker ps -a
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    a5919042c212 codercom/code-server:latest "/usr/bin/entrypoint…" 11 minutes ago Exited (6) 7 minutes ago code-server
  6. $ docker start -a a5919042c212
    usermod: user 'coder' does not exist

Expected

Docker container should restart gracefully.

Actual

A new container is ran successfully, but a restart makes it fail. Subsequent restarts or start will not fix the issue. The way to run this again is to forcefully remove the container and run a new one.

Notes

This seems to have been reported and fixed in #2267 but it appears that this is still an issue.

@jsjoeio jsjoeio added the needs-investigation This issue needs to be further investigated label May 4, 2021
@jsjoeio jsjoeio added this to the v3.9.5 milestone May 4, 2021
@code-asher
Copy link
Member

Thanks for the report! Looks like this is a duplicate of #2767.

@code-asher code-asher added duplicate and removed needs-investigation This issue needs to be further investigated labels May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants