## Stripe CLI Docker Integration

The Stripe CLI offers a Docker image, allowing you to run the CLI within a containerized environment. This can be useful for consistent development and deployment workflows.

### Environment Variables

When using the Stripe CLI with Docker, you can configure it using the following environment variables:

*   **`STRIPE_API_KEY`**: Specifies the API key for the CLI to use.
*   **`STRIPE_DEVICE_NAME`**: Sets the device name for the CLI, which will be visible in your Stripe Dashboard.

### Using `stripe login` with Docker

Due to the ephemeral nature of Docker containers, the `stripe login` command cannot be used directly without configuring a data volume. This is because `stripe login` persists credentials locally, which would be lost when the container is removed.

Instead, you should use the `--api-key` flag when running commands within a Docker container.

### Example: Running in a Docker Container

```bash
# Example of running a command with a specified API key in a Docker container
docker run stripe/stripe-cli --api-key YOUR_STRIPE_SECRET_KEY stripe status
```