Skip to content
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

Running Ubuntu Noble docker image cannot start and prompts for sudo password for ubuntu user #7232

Open
1 of 2 tasks
bsdz opened this issue Feb 26, 2025 · 1 comment · May be fixed by #7235
Open
1 of 2 tasks

Running Ubuntu Noble docker image cannot start and prompts for sudo password for ubuntu user #7232

bsdz opened this issue Feb 26, 2025 · 1 comment · May be fixed by #7235
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@bsdz
Copy link

bsdz commented Feb 26, 2025

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: n/a
  • Local OS: Ubuntu 2410
  • Remote OS: Ubuntu 2204
  • Remote Architecture: amd64
  • code-server --version: latest on docker

Steps to Reproduce

If I run against the default tag codercom/code-server:latest then I can run code-server without problems. If I try to use the Ubuntu noble tag codercom/code-server:noble then the following happens:

/tmp$ 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:noble
Unable to find image 'codercom/code-server:noble' locally
noble: Pulling from codercom/code-server
5a7813e071bf: Already exists 
86ea388b5172: Pull complete 
2674edc63bd8: Pull complete 
2c6b69cb5a29: Pull complete 
af58174aee64: Pull complete 
12cc2dc73f9c: Pull complete 
996456e9d635: Pull complete 
4f4fb700ef54: Pull complete 
Digest: sha256:5de78bd0d48d56d38aa5813e597122766a96bb7e0a54a96e5409d0e576e4c8c9
Status: Downloaded newer image for codercom/code-server:noble
[sudo] password for ubuntu: 

It seems that the image on hub.docker.com has been built with a default user ubuntu and I expect it should be coder.

Expected

The docker image should run in a similar way to the tag codercom/code-server:latest; that is, without issues.

Actual

It prompts for the sudo password for ubuntu user.

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@bsdz bsdz added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Feb 26, 2025
@benz0li
Copy link
Contributor

benz0li commented Feb 27, 2025

benz0li added a commit to benz0li/code-server that referenced this issue Feb 27, 2025
@benz0li benz0li linked a pull request Feb 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants