Skip to main content

format_docker_env

Function format_docker_env 

Source
pub fn format_docker_env(secrets: &HashMap<String, String>) -> String
Expand description

Docker --env-file format: KEY=VALUE per line, sorted by key.

Docker env-file syntax is identical to POSIX KEY=VALUE, without export prefixes. Values containing newlines have them escaped as \n / \r so each pair stays on one line.