How do I make sure my slrum or compute will run in a docker environment that I created

I want to ensure my code will be in my container for reproducibility.