Configuring a Docker Container

Before starting your container, you may want to add additional portal configurations. This could include things like

  • Property overrides (e.g.,
  • Marketplace app overrides
  • App server configurations
  • License files

You can do this by applying files (and their accompanying folder structures, if necessary) to your workspace’s configs/docker folder. This folder is treated as your Liferay Home for Docker development; you add additional files that overlay your workspace’s configs/common folder and your Liferay DXP container’s default configuration.

As an example, you’ll enable the Gogo shell for your container.

  1. Add a file to your workspace’s configs/docker folder.

  2. Add the following property to the file:

    This lets you access your container using Gogo shell via telnet session.

  3. Start the container.

    Once the container is started, the configurations stored in configs/common and configs/docker are transferred to the build/docker/files folder, which applies all configurations to the container’s file system. For more information on workspace’s configs folder, see this section.

You can now apply configurations to your Liferay DXP Docker container.

« Creating a Liferay DXP Docker ContainerBuilding a Custom Docker Image »
Was this article helpful?
1 out of 1 found this helpful