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

Container not handle very well drop all caps and run as non-root #77

Open
psychomantys opened this issue Apr 25, 2022 · 0 comments
Open

Comments

@psychomantys
Copy link

The base image of the container make some tests and run code to "fix" something how is not a problem.

Like this:

version: '3.9'

services:
  tor:
    deploy:
      replicas: 1
    image: dperson/torproxy:latest
    cap_drop:
      - ALL
    user: "tor:1999"
    networks:
      - tor-net

networks:
  tor-net:
    external:
      name: tor-net

Something like this stack should work.

Maybe set the permissions only on the image and use chown only if the user is root.

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