In the manually created version of Workspace used for Liferay Learn, we don't have the configs directory by default. It's likely users and customers will download one of our sample projects to use as a starting point. If you try to create a Docker container, it fails with this error:
If you create just the configs folder, you get another cryptic error:
The Gradle task should create all necessary directories if they don't exist.
UPDATE: The current Gradle task also requires a portal-ext.properties file to be inside at least one (dev) of the config folders. This is extra configuration and also should not be required.