Running utilities from the Utility server Docker container

This document provides instructions on running utilities from the Utility server Docker container for HCL Commerce+.

Before you begin

To run utilities, access the Utility server Docker container and use a bash shell.

About this task

Persistence of Configuration and Data Files:
  • Files stored directly in the Utility server Docker container will belost upon upgrading or restarting the container.
  • Avoid storing large amounts of data in the container. Containers are not designed for this purpose.

Procedure

  • Use a separate volume mounted to the container as a writable directory for storing any files that may change.
  • Ensure all configuration and data files are written to this mounted directory.

    Results

    This setup ensures:
    • Files remain intact when upgrading the Utility server Docker container image.
    • The mounted volume can be re-attached to the new container.
    • Files in the mounted directory are accessible from the host machine, simplifying editing and management.

    What to do next

    • Regularly back up configuration and data files stored in the mounted volume.
    • Use descriptive names for mounted volumes to simplify identification and management.

    By following these steps and recommendations one can effectively manage and run utilities while minimizing data loss.