An LLM-based Agent for Reliable Docker Environment Configuration