When I'm out of detergent for washer or dishwasher I use Dawn original liquid and baking soda.
For washer I use 1 teaspoon of liquid dish detergent ( I like Dawn original). two teaspoons of baking soda. Baking soda stops the sudsing. Dissolve in warm water. For a full load. Using warm or hot water.
For dishwasher I use 1/4 teaspoon liquid dish detergent and 1/2 teaspoon baking
soda dissolved in 1/2 cup warm water put in the detergent cup.