Docker Setup Recommendations

This topic lists the recommendations and best practices to configure and secure your Docker setups.

Recommendations

  • After bringing up the image, do not modify anything within the container.
  • Set up a test environment where you can perform the migration tasks and run the tests before migrating to the production environment.
  • Back up your data before performing the migration.
  • Ensure that both host and database server time are synchronized and are in the same time zone.
  • During any activity configuration, if you add a new API configuration that has a host name, add all the host name mappings by adding --add-host=<host_name>:<IP address> in the docker run command.
  • To resolve the hostname, add the hostname mapping by adding --add-host=<host_name>:<IP address> in the docker run command, delete the old container, and create a new container by running the updated docker run command.

Best Practices for Docker Setups

It is recommended to adhere to certain best practices while configuring your Docker setups. This enhances the security of your Docker daemon and improves its performance. For detailed information, refer to the IBM support document Best Practices for Docker Security and Configuration.