dockertest icon indicating copy to clipboard operation
dockertest copied to clipboard

Support restarting docker container

Open noradroid opened this issue 5 months ago • 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

I use dockertest for running integration tests with the database. I'm currently using postgres with wallogs enabled (need to set postgres config as wal_level = logical etc.) as well as with postgres extensions installed. However, I am having trouble replicating this setup with dockertest as making changes to the config or adding new extension requires a db restart, which it seems like the postgres docker container does not support restarting the postgres service through commands and it only works if i restart the docker container itself. And I was not able to locate documentation for how to restart the docker container through dockertest.

Please help.

Describe your ideal solution

A method that allows me to restart the docker container programmatically.

Workarounds or alternatives

I've considered building a custom image which would possibly have all the configs updated and extensions installed before the container is even started up, but it seems that using a custom image would require me to host the image somewhere instead of being able to pull the image from the local dockerfile.

Version

v3

Additional Context

No response

noradroid avatar May 09 '25 02:05 noradroid