Setup encryption at rest with command line flags

[Question posted by a user on YugabyteDB Community Slack ]

Is there a way to setup encryption at rest with command line flags, for example when running YB with docker containers.

Or is the only way to mount a key to some path, and then run yb-admin afterwards ?

Currently, the only way is to mount a key to some path and run yb-admin. See docs: https://docs.yugabyte.com/latest/secure/encryption-at-rest/