Do you work with Ruby and like Docker? I advise you to pay attention to donce gem.
This is a simple but effective wrapper around the docker run command that allows you to run one-off containers of an image you specify. One of the main features is that you can run a container by passing the contents of the Dockerfile as a string. This is a very useful tool that allows you to run various tools in your tests or CI scripts without installing them as a dependency on your system.
Easy to use:
require 'donce'
out = donce(image: 'ubuntu:22.04', command: 'date')
puts out
=> Sun Mar 23 14:28:56 UTC 2026