Skip to content
Discussion options

You must be logged in to vote

I checked the docker run in snackup.sh. The baseline is already pretty solid: read-only rootfs, dropped capabilities, no-new-privileges, non-root execution, CPU/memory limits and bounded tmpfs mounts.

I wouldn't add a custom seccomp profile just for the sake of having one — Docker uses its built-in seccomp profile by default unless it's explicitly disabled.

A couple of things I'd still consider:

  • add --pids-limit so a session can't exhaust the host's process table;
  • if the user doesn't actually need every GPU, expose a specific GPU with --gpus '"device=0"' instead of --gpus all;
  • for a stronger host boundary on Linux, rootless Docker or daemon-level userns-remap is worth considering.

The G…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@PacifAIst
Comment options

@PacifAIst
Comment options

Answer selected by PacifAIst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Programming Help Discussions around programming languages, open source and software development source:ui Discussions created via Community GitHub templates
2 participants