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

[1.x] Remove the default ubuntu user #762

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

rojtjo
Copy link
Contributor

@rojtjo rojtjo commented Nov 27, 2024

Fixes #761

In #758 the base image was changed from 20.04 and 22.04 to 24.04 which caused some permission errors.

It seems that as of Ubuntu 23.04 the base image comes with a default user named ubuntu. This causes the app files to be owned by that user instead of the expected sail user. This PR removes the default ubuntu user before the sail user is created.

More info here: https://askubuntu.com/questions/1513927/ubuntu-24-04-docker-images-now-includes-user-ubuntu-with-uid-gid-1000

Before:
image

After:
image

@taylorotwell taylorotwell merged commit 1a3c729 into laravel:1.x Nov 27, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git warning in Composer commands since 1.39.0
2 participants