Yes, the CLI can run in Docker. The desktop app is not designed to run in Docker. And yes, you can use any HTTPS OpenAI-compatible endpoint, including a custom base URL and model ID.