docker: the docker image started including ubuntu user/group
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Won't Fix
|
Undecided
|
Cristovao Cordeiro |
Bug Description
Reported also at https:/
The issue is about the `docker run --rm -it --name ubuntu ubuntu:latest` image.
I don't know when the problem started, I was only able to get the image sha that does not include the ubuntu user/group, and the latest image that does include them.
Noote that this is a breaking change. It will cause problems for people who until now used to create a user/group with the default ids 1000 when building custom images based on ubuntu.
1. Old image working as expected: no ubuntu user/group is present
docker run --rm -it --name ubuntu ubuntu@
# Output
# no 1000 user/group
docker run --rm -it --name ubuntu ubuntu@
# Output
# serial: 20240227
2. New image not working as expected: ubuntu user/group is present
docker run --rm -it --name ubuntu ubuntu@
# Output
# /etc/passwd:
# /etc/group:
docker run --rm -it --name ubuntu ubuntu@
# Output
# build_name: ubuntu-
# serial: 20240423
Hi Marcin!
This is indeed the behaviour since 23.04.
A more detailed explanation of the change is described in another thread, here: https:/ /bugs.launchpad .net/cloud- images/ +bug/2005129/ comments/ 2
The change has only been applied to >=23.04 precisely to avoid breaking existing use cases. Please note that the "latest" tag is a moving target, so you should expect it to always point to the latest Ubuntu release, which may carry significant changes (whether that's different package versions, image metadata or system configurations).
Like https:/ /bugs.launchpad .net/cloud- images/ +bug/2005129, I'll be marking this as a "Won't fix" since the rationale for the change and its value are explained in https:/ /bugs.launchpad .net/cloud- images/ +bug/2005129/ comments/ 2.
The thread will remain open for discussions if you need extra clarifications though.