-
Notifications
You must be signed in to change notification settings - Fork 353
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
docker: Multiple fixes #1392
docker: Multiple fixes #1392
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test the build and usage? I Build this on Mac but got an error when i want to build the docu:
docker run --rm -it -v "$(pwd)":/vyos -w /vyos/docs \
-e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) vyos-docsv2 make html
Current UID/GID: 501/20
sudo: exec: command not found
@rebortg I did test it at the time, but for some reason it isn't working now. I've added another commit to fix the issue, tested working on macOS 14.4.1. |
@MattKobayashi can you please add a comment why |
@c-po That's correct, macOS UIDs begin at 501. This is actually part of the Linux Standard Base specification. |
@Mergifyio backport sagitta |
✅ Backports have been created
|
docker: Multiple fixes (backport #1392)
Change Summary
--break-system-packages
option topip3 install
commandchmod a+s
from Dockerfile (newer versions ofgosu
in particular don't support this)sudo
to relevant commands inentrypoint.sh
UID_MIN
key toadduser
command (allows the container to run on MacOS)Related Task(s)
Related PR(s)
Backport
Checklist: