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 restart policy option, to set restart=always #988

Open
Somebi opened this issue Dec 15, 2024 · 0 comments
Open

Docker restart policy option, to set restart=always #988

Somebi opened this issue Dec 15, 2024 · 0 comments

Comments

@Somebi
Copy link

Somebi commented Dec 15, 2024

...python3.11/site-packages/vespa/deployment.py
self.container = client.containers.run(
self.container_image,
detach=True,
mem_limit=container_memory,
name=application_name,
hostname=application_name,
privileged=True,
ports=mapped_ports,
volumes=volumes,
)

        restart_policy (dict): Restart the container when it exits.
            Configured as a dictionary with keys:

            - ``Name`` One of ``on-failure``, or ``always``.
            - ``MaximumRetryCount`` Number of times to restart the
              container on failure.

            For example:
            ``{"Name": "on-failure", "MaximumRetryCount": 5}``

Lack of restart_policy setting in pyvespa. I.e. to make restart_policy=always (edited)

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