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

[question] Provide parameters for docker run #387

Closed
nicopaez opened this issue Oct 18, 2023 · 2 comments
Closed

[question] Provide parameters for docker run #387

nicopaez opened this issue Oct 18, 2023 · 2 comments

Comments

@nicopaez
Copy link

nicopaez commented Oct 18, 2023

Hi, I need to pass "--privileged --security-opt="seccomp=unconfined"" to docker run, I mean: the command I need to execute is:

docker run --privileged --security-opt="seccomp=unconfined" qdrant/qdrant:v1.6.0

Is it possible?

@Mohsin-Ul-Islam
Copy link
Contributor

Mohsin-Ul-Islam commented Oct 23, 2023

Hi @nicopaez

Have you tried this:

with DockerContainer('qdrant/qdrant:v1.6.0', priviliged=True, security_opt=['seccomp=unconfined']) as container:
  pass

These options are supported via **kwargs when creating and running your container.

See: https://github.com/docker/docker-py/blob/e9d4ddfaece229fbd2df1a1bfa3f4f513f33d1ac/docker/models/containers.py#L735

And also: https://github.com/docker/docker-py/blob/e9d4ddfaece229fbd2df1a1bfa3f4f513f33d1ac/docker/models/containers.py#L718

@kiview
Copy link
Member

kiview commented Nov 24, 2023

I'll close this, since I assume the instructions provided by @Mohsin-Ul-Islam should solve this use case. Please let us know if this does not work for you @nicopaez.

@kiview kiview closed this as completed Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants