There are many established methods and materials for stabilizing and securing intermodal containers loaded on ships, as well as the internal cargo inside the boxes.
Flexi-bags can also be directly loaded, stacked in food-grade containers.