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

Docker host root directory is not checked for 'nosuid' flags - which results in deployment failure. #69

Open
AndrewHogg opened this issue Nov 30, 2023 · 0 comments

Comments

@AndrewHogg
Copy link

AndrewHogg commented Nov 30, 2023

If the docker container root directory has the nosuid flag set on the mount, the use of sudo within the container initialisation script fails. The container reports as being successfully initialised but within the console output is the following, indicating that it has not been successful.

sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

The fix is to remove the nosuid flag on the mount - a defensive measure within the zdm util script and proxy deployment script would be to check this flag before progressing.

┆Issue is synchronized with this Jira Task by Unito
┆Components: Automation
┆Priority: Major

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

No branches or pull requests

1 participant