🐳 DevOps Utility

Docker Run Command Generator

Paste your .env content to generate a docker run command with all your environment variables automatically formatted.

Waiting for input...

Stop! Don't Paste Secrets.

Running this command will leave your secrets in your shell history (~/.bash_history). Instead, share them securely or use a secrets manager.

About Docker Environment Variables

When running Docker containers, you often need to pass configuration via environment variables. The -e flag allows you to set these variables at runtime.

  • Format: docker run -e KEY=VALUE image_name
  • Security Risk: Variables passed this way are visible in process lists (ps aux) and shell history.
  • Best Practice: For production, use Docker Secrets or an env file (--env-file), though even --env-file requires the file to exist on the host.

Explore More Developer Tools