Comments (5)
I have the exact same problem 😉
I can see that merge #1036 fixes the overall image build issue but not the issue that a mapping to the host system is currently done with a wrong uid or at least wrong for the default user's uid for most of us.
from images.
It seems the devcontainer images are based on these https://hub.docker.com/_/buildpack-deps/ which themselves are based on the official ubuntu images https://hub.docker.com/_/ubuntu
Apparently the extra user originates from there:
$ docker run -it --rm ubuntu:22.04 grep 'ubuntu' /etc/passwd || echo nothing
nothing
$ docker run -it --rm ubuntu:24.04 grep 'ubuntu' /etc/passwd || echo nothing
ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
from images.
Hi 👋
It seems the devcontainer images are based on these https://hub.docker.com/_/buildpack-deps/ which themselves are based on the official ubuntu images https://hub.docker.com/_/ubuntu
Yes, that's correct! With the newer release of noble
, the official ubuntu
image added a new ubuntu
user with gid/uid:1000
. This started conflicting with with vscode:1000
.
Hence, we decided to let vscode
's UID/GID update as we didn't want to update (rename/delete/update) the ubuntu
user provided by the base image.
This is not the case with focal
and jammy
, hence the vscode:1000
is intact.
#1036 mentions the same thing in the description!
from images.
So is the image supposed to work with UID 1001 just as before? For now it is not, not at least for me.
(Of course it is possible that there is something unrelated going on with my setup)
from images.
Adding this to my Dockerfile to fix it:
# Using mcr.microsoft.com/devcontainers/base:ubuntu-24.04 as base image
RUN userdel -r ubuntu; usermod -u 1000 vscode; groupmod -g 1000 vscode
from images.
Related Issues (20)
- vcpkg missing from cpp images
- Support Alpine 3.20 scheduled for May 2024 HOT 3
- add opencontainers labels to the docker images HOT 5
- [Universal] Unpin patch version for dotnet runtime & core HOT 2
- [variant/version] EOL scheduled for [date]
- samruddhikhandale/cpp-ts HOT 3
- Is DevContainer Support distroless python docker images? HOT 2
- Python standard library Modulefinder not working with editable installed packages HOT 1
- SSL certificate problem: unable to get local issuer certificate HOT 2
- Alpine 3.16 EOL HOT 2
- > @prathameshzarkarollowing Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information. HOT 1
- Gem subdirectory not writable on ruby:3.2-bookworm HOT 2
- [Image Name] [variant/version] EOL scheduled for [date] HOT 1
- [Image Name] [variant/version] EOL scheduled for [date] HOT 1
- Support Deno alpine HOT 1
- [Image Name] [variant/version] EOL scheduled for [date] HOT 1
- Support [Image Name] [variant/version] scheduled for [date] HOT 1
- [Image Name] [variant/version] EOL scheduled for [date] HOT 1
- Add support for [mambaorg/micromamba] images HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from images.