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

Add --compat short-hand for improved OCI/Docker compatibility #235

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Aug 11, 2021

Description of the Pull Request (PR):

It is common for users to run docker containers that expect more isolation than is default in Singularity, and that can create files on startup. This is a simple short-hand to enable --contain-all, --no-init, --no-umask, --writable-tmpfs. These options give the best chance of an OCI/Docker container working as expected but without requiring the user/uts/net namespaces that we can't rely on in all installations / configurations of SingularityCE.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@dtrudg dtrudg self-assigned this Aug 11, 2021
@dtrudg dtrudg added the enhancement New feature or request label Aug 11, 2021
@dtrudg dtrudg added this to the SingularityCE 3.9.0 milestone Aug 11, 2021
@dtrudg dtrudg force-pushed the issue75 branch 2 times, most recently from a596913 to 7c46b75 Compare August 11, 2021 20:33
It is common for users to run docker containers that expect more
isolation than is default in Singularity, and that can create files on
startup. This is a simple short-hand to enable `--contain-all,
--no-init, --no-umask, --writable-tmpfs`. These options give the best
chance of an OCI/Docker container working as expected but *without*
requiring the user/uts/net namespaces that we can't rely on in all
installations / configurations of SingularityCE.

Fixes: #75
@dtrudg dtrudg marked this pull request as ready for review August 11, 2021 21:18
@dtrudg
Copy link
Member Author

dtrudg commented Aug 11, 2021

Whoops - there is a bit of noise here with octal literals, as I used gofumpt - apologies for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

’Docker-like’ mode
2 participants