This message was deleted.
# general
m
This message was deleted.
w
Question: you execute it like this:
Copy code
resource, err := pool.RunWithOptions(options, func(config *dc.HostConfig) {
...
})
is err not nil here and the resource is nil?
m
The error is not nil here
w
that's a problem, the driver doesn't give you a container id because the container did not start
you should look into the config for autoremove option
what you'd normally do with `docker run --rm``
m
Thanks!
autoremove
solves this issue:)
👍🏻 1
l
what I would also suggest is to use
docker compose
for local testing/development, this by default will remove your containers.
m
Do you mean to create some docker-compose and run/stop it using code?
w
it depends how you configure your docker compose, you can also use this: https://github.com/radekg/app-kit-orytest, may need it will require updates for the most recent versions of the ory stack