Unable to run Karaf script bin/client in Dockerfile

Solution Verified - Updated -

Issue

When trying to run a Karaf command using bin/client <command> in a Dockerfile, the call fails with error Closed written to the console.
This prevents one from building customized Docker images for Fuse on Karaf.

The problem does not exist on Fuse 7.2 or earlier.

Environment

  • Red Hat Fuse
    • 7.3 or higher
  • Docker environment
  • calling bin/client <command> in Dockerfile

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content