Installing charts from the cli in a docker container

I’m trying to automate the deployment of a couple of helm charts within a dockerized rancher environment using the official rancher container image. I’m fairly new to rancher so I may just be going about this wrong. When running ‘rancher list’ within the container, for instance, it tries to start up a new instance of rancher. This fails, of course, due to various ports already being in use.

The rancher-helm utility looked promising at first but it wants tiller installed, which doesn’t seem right if we’re using helm v3.

There’s also a helm_v3 command within the container but it doesn’t appear to know about the rancher repos. I want my deployed apps to show up within rancher.

Is there a way to install charts from the cli in a docker environment?