Closed HeyNonster closed 8 months ago
@HeyNonster hi! can you run rake standard:fix
locally so the code style is fixed automatically to follow StandardRB?
@HeyNonster hi! can you run
rake standard:fix
locally so the code style is fixed automatically to follow StandardRB?
@guilleiguaran Done! :)
Seems to all be passing except for the timeout
issue that's also present on the main
branch! :)
@HeyNonster thanks!!! I'll fix the timeout issue later this week (or feel free to send a PR for it if you have some spare time :D)
@HeyNonster thanks!!! I'll fix the timeout issue later this week (or feel free to send a PR for it if you have some spare time :D)
@guilleiguaran You probably already saw this, but: https://github.com/testcontainers/testcontainers-ruby/pull/32 🙂
The
Docker::Container
remove
method in docker-api conditionally accepts a hash of optionsFurthermore, removing a docker container, by default, will not remove the volumes unless you pass
v: true
as a parameter.Without the ability to pass
v: true
we can end up with many dangling volumes that take up disk space.This commit adds an optional hash argument to the
DockerContainer
#remove
method, it defaults to an empty hash.To assist with tests I've also added:
DockerContainer#mounts
method which returns an array of the mount hashes from the container#info
DockerContainer#mount_names
which returns an array of the mount names (ids)Not changed but perhaps good to discuss: should
remove
also remove the volumes by default?